Urho3D::AttributeInfo Struct Reference

Description of an automatically serializable variable. More...

#include <Attribute.h>

Collaboration diagram for Urho3D::AttributeInfo:
[legend]

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.
 

Public Attributes

VariantType type_
 Attribute type.
 
String name_
 Name.
 
unsigned offset_
 Byte offset from start of object.
 
const char ** enumNames_
 Enum names.
 
SharedPtr< AttributeAccessoraccessor_
 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:
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Core/Attribute.h