PropertyContainer

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

API

HPropertyContainer

Type: TYPEDEF Opaque handle to a list of properties

HPropertyContainerBuilder

Type: TYPEDEF Opaque handle to a property container builder

PropertyContainerBuilderParams

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

PropertyContainerCopy

Type: FUNCTION Allocates and copies a property container

Parameters

Returns

PropertyContainerCreate

Type: FUNCTION Creates the final property container

Parameters

Returns

PropertyContainerCreateBuilder

Type: FUNCTION Create a property container builder with memory preallocated

Parameters

Returns

PropertyContainerDestroy

Type: FUNCTION Deallocates a property container

Parameters

PropertyContainerMerge

Type: FUNCTION Merges two containers into a newly allocated container The properties in the overrides container will take presedence.

Parameters

Returns

PropertyContainerPushBool

Type: FUNCTION Add a property of type bool to the container

Parameters

PropertyContainerPushFloat

Type: FUNCTION Add a property of type float to the container

Parameters

PropertyContainerPushHash

Type: FUNCTION Add a property of type dmhash_t to the container

Parameters

PropertyContainerPushQuat

Type: FUNCTION Add a property of type float4 to the container

Parameters

PropertyContainerPushURL

Type: FUNCTION Add a property of type dmMessage::URL to the container

Parameters

PropertyContainerPushURLString

Type: FUNCTION Add a property of type (url) string to the container

Parameters

PropertyContainerPushVector3

Type: FUNCTION Add a property of type float3 to the container

Parameters

PropertyContainerPushVector4

Type: FUNCTION Add a property of type float4 to the container

Parameters