mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
b6af92ef81
* Split out BehaviorMessage class changes from PR #1452 * remove <string_view> inclusion in ActionContext.h * add the arguments nullptr check back in * remove redundant std::string constructor calls * Update AddStripMessage.cpp - change push_back to emplace_back
27 lines
909 B
C++
27 lines
909 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__
|