Namespace: dmGameObject
Language: C++
Type: Defold C++
File: gameobject_props.h
Source: engine/gameobject/src/dmsdk/gameobject/gameobject_props.h
Include: dmsdk/gameobject/gameobject_props.h
API for game object property container
Type: TYPEDEF Opaque handle to a list of properties
Type: TYPEDEF Opaque handle to a property container builder
Type: STRUCT PropertyContainerBuilderParams Helper struct to create a property container builder. It is required to fill out how many items of each type that is wanted.
Parameters
m_NumberCount (int32_t) - Number of items of type floatm_HashCount (int32_t) - Number of items of type dmhash_tm_URLStringCount (int32_t) - Number of items of type const char*m_URLStringSize (int32_t) - Size of all url strings combined, including null terminatorsm_URLCount (int32_t) - Number of items of type dmMessage::URLm_Vector3Count (int32_t) - Number of items of type vector3 (float[3])m_Vector4Count (int32_t) - Number of items of type vector4 (float[4])m_QuatCount (int32_t) - Number of items of type quaternion (float[4])m_BoolCount (int32_t) - Number of items of type boolType: FUNCTION Allocates and copies a property container
Parameters
original (HPropertyContainer) - The original property containerReturns
container (HPropertyContainer) - The new property containerType: FUNCTION Creates the final property container
Parameters
builder (HPropertyContainerBuilder) - The property container builderReturns
container (HPropertyContainer) - The property containerType: FUNCTION Create a property container builder with memory preallocated
Parameters
params (PropertyContainerBuilderParams) - The params holding the memory requirementsReturns
container (HPropertyContainerBuilder) - The builderType: FUNCTION Deallocates a property container
Parameters
container (HPropertyContainer) - The property containerType: FUNCTION Merges two containers into a newly allocated container The properties in the overrides container will take presedence.
Parameters
original (HPropertyContainer) - The original property containeroverrides (HPropertyContainer) - The container with override propertiesReturns
container (HPropertyContainer) - The merged property containerType: FUNCTION Add a property of type bool to the container
Parameters
builder (HPropertyContainerBuilder) - The container builderid (dmhash_t) - The id of the propertyvalue (bool) - The value of the propertyType: FUNCTION Add a property of type float to the container
Parameters
builder (HPropertyContainerBuilder) - The container builderid (dmhash_t) - The id of the propertyvalue (float) - The value of the propertyType: FUNCTION Add a property of type dmhash_t to the container
Parameters
builder (HPropertyContainerBuilder) - The container builderid (dmhash_t) - The id of the propertyvalue (dmhash_t) - The value of the propertyType: FUNCTION Add a property of type float4 to the container
Parameters
builder (HPropertyContainerBuilder) - The container builderid (dmhash_t) - The id of the propertyvalues (float*) - The value of the property (4 floats)Type: FUNCTION Add a property of type dmMessage::URL to the container
Parameters
builder (HPropertyContainerBuilder) - The container builderid (dmhash_t) - The id of the propertyvalue (dmMessage::URL) - The value of the propertyType: FUNCTION Add a property of type (url) string to the container
Parameters
builder (HPropertyContainerBuilder) - The container builderid (dmhash_t) - The id of the propertyvalue (const char*) - The value of the propertyType: FUNCTION Add a property of type float3 to the container
Parameters
builder (HPropertyContainerBuilder) - The container builderid (dmhash_t) - The id of the propertyvalues (float*) - The value of the property (3 floats)Type: FUNCTION Add a property of type float4 to the container
Parameters
builder (HPropertyContainerBuilder) - The container builderid (dmhash_t) - The id of the propertyvalues (float*) - The value of the property (4 floats)