|
GigaPasjans
|
Enum based parameter. Stored as 32bit signed integer. More...
#include <GameObject.h>


Public Member Functions | |
| WideString | GetBinding (int32 index) const |
| Returns bound name for enum value. | |
| int32 | GetBindingCount () const |
| Returns binding count. | |
Public Member Functions inherited from Phosphorus::IParameter< int32 > | |
| IParameter (const String &name, const int32 &defaultValue) | |
| void | SetValue (const int32 &value) |
| Sets value. | |
| int32 | GetValue () const |
| Returns value. | |
| void | SetDisplayName (const String &name) override |
| String | GetName () const override |
| Returns parameter name. | |
| String | GetDisplayName () const override |
| Returns parameter display name. | |
Protected Member Functions | |
| BaseEnumParameter (const String &name, int32 defaultValue) | |
| int32 | Write (nlohmann::json &target) const override |
| Writes text representation of data to JSON object. | |
| int32 | Read (nlohmann::json &target) override |
| Parses text representation of data from JSON object. | |
Protected Attributes | |
| std::unordered_map< int32, WideString > | m_Bindings |
| Enum bindings. | |
Protected Attributes inherited from Phosphorus::IParameter< int32 > | |
| int32 | m_Value |
| String | m_Name |
| String | m_DisplayName |
Enum based parameter. Stored as 32bit signed integer.
|
inline |
|
inline |
Returns binding count.
|
inlineoverrideprotectedvirtual |
Parses text representation of data from JSON object.
| target | JSON object |
Implements Phosphorus::IBaseParameter.
|
inlineoverrideprotectedvirtual |
Writes text representation of data to JSON object.
| target | JSON object |
Implements Phosphorus::IBaseParameter.