mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-26 22:58:14 +05:00
21 lines
443 B
C++
21 lines
443 B
C++
#pragma once
|
|
|
|
#include "BaseAttribute.h"
|
|
|
|
class RangedAttribute : public BaseAttribute
|
|
{
|
|
private:
|
|
double minValue;
|
|
double maxValue;
|
|
|
|
public:
|
|
RangedAttribute(eATTRIBUTE_ID id, double defaultValue, double minValue, double maxValue);
|
|
|
|
double getMinValue();
|
|
double getMaxValue();
|
|
double sanitizeValue(double value);
|
|
|
|
// 4J: Removed legacy name
|
|
//RangedAttribute *importLegacyName(const wstring &name);
|
|
//wstring getImportLegacyName();
|
|
}; |