Urho3D
|
Description of an automatically serializable variable. More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Core/Attribute.h>
Public Member Functions | |
AttributeInfo ()=default | |
Construct empty. | |
AttributeInfo (VariantType type, const char *name, const SharedPtr< AttributeAccessor > &accessor, const char **enumNames, const Variant &defaultValue, AttributeModeFlags mode) | |
Construct attribute. | |
const Variant & | GetMetadata (const StringHash &key) const |
Get attribute metadata. | |
template<class T > | |
T | GetMetadata (const StringHash &key) const |
Get attribute metadata of specified type. | |
Public Attributes | |
VariantType | type_ = VAR_NONE |
Attribute type. | |
String | name_ |
Name. | |
const char ** | enumNames_ = nullptr |
Enum names. | |
SharedPtr< AttributeAccessor > | accessor_ |
Helper object for accessor mode. | |
Variant | defaultValue_ |
Default value for network replication. | |
AttributeModeFlags | mode_ = AM_DEFAULT |
Attribute mode: whether to use for serialization, network replication, or both. | |
VariantMap | metadata_ |
Attribute metadata. | |
void * | ptr_ = nullptr |
Attribute data pointer if elsewhere than in the Serializable. | |
Description of an automatically serializable variable.