Urho3D::AttributeInfo Struct Reference

Description of an automatically serializable variable. More...

#include <Urho3D/Core/Attribute.h>

Collaboration diagram for Urho3D::AttributeInfo:
[legend]

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 VariantGetMetadata (const StringHash &key) const
 Get attribute metadata.
 
template<class 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< AttributeAccessoraccessor_
 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.
 

Detailed Description

Description of an automatically serializable variable.


The documentation for this struct was generated from the following file: