Urho3D::AttributeInfo Struct Reference
Urho3D::AttributeInfo Struct Reference
Description of an automatically serializable variable. More...
#include <Urho3D/Core/Attribute.h>
Collaboration diagram for Urho3D::AttributeInfo:
Public Member Functions | |
AttributeInfo () | |
Construct empty. | |
AttributeInfo (VariantType type, const char *name, size_t offset, const Variant &defaultValue, unsigned mode) | |
Construct offset attribute. | |
AttributeInfo (const char *name, size_t offset, const char **enumNames, const Variant &defaultValue, unsigned mode) | |
Construct offset enum attribute. | |
AttributeInfo (VariantType type, const char *name, AttributeAccessor *accessor, const Variant &defaultValue, unsigned mode) | |
Construct accessor attribute. | |
AttributeInfo (const char *name, AttributeAccessor *accessor, const char **enumNames, const Variant &defaultValue, unsigned mode) | |
Construct accessor enum attribute. | |
AttributeInfo (VariantType type, const char *name, AttributeAccessor *accessor, const Variant &defaultValue, const char **variantStructureElementNames, unsigned mode) | |
Construct variant structure (structure, which packed to VariantVector) attribute. | |
Public Attributes | |
VariantType | type_ |
Attribute type. | |
String | name_ |
Name. | |
unsigned | offset_ |
Byte offset from start of object. | |
const char ** | enumNames_ |
Enum names. | |
const char ** | variantStructureElementNames_ |
Variant structure elements names. | |
SharedPtr< AttributeAccessor > | accessor_ |
Helper object for accessor mode. | |
Variant | defaultValue_ |
Default value for network replication. | |
unsigned | mode_ |
Attribute mode: whether to use for serialization, network replication, or both. | |
void * | ptr_ |
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:
- Source/Urho3D/Core/Attribute.h