mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
9655f0ee45
fix compile issues
27 lines
894 B
C++
27 lines
894 B
C++
#ifndef BLOCKDEFINITION_H
|
|
#define BLOCKDEFINITION_H
|
|
|
|
#include <string>
|
|
|
|
class AMFArrayValue;
|
|
|
|
class BlockDefinition {
|
|
public:
|
|
BlockDefinition(const std::string& defaultValue = "", const float minimumValue = 0.0f, const float maximumValue = 0.0f);
|
|
static BlockDefinition blockDefinitionDefault;
|
|
|
|
[[nodiscard]] const std::string& GetDefaultValue() const { return m_DefaultValue; }
|
|
[[nodiscard]] float GetMinimumValue() const noexcept { return m_MinimumValue; }
|
|
[[nodiscard]] float GetMaximumValue() const noexcept { return m_MaximumValue; }
|
|
void SetDefaultValue(const std::string& value) { m_DefaultValue = value; }
|
|
void SetMinimumValue(const float value) noexcept { m_MinimumValue = value; }
|
|
void SetMaximumValue(const float value) noexcept { m_MaximumValue = value; }
|
|
|
|
private:
|
|
std::string m_DefaultValue;
|
|
float m_MinimumValue;
|
|
float m_MaximumValue;
|
|
};
|
|
|
|
#endif //!BLOCKDEFINITION_H
|