Namespace: dmGameSystem
Language: C++
Type: Defold C++
File: property.h
Source: engine/gamesys/src/dmsdk/gamesys/property.h
Include: dmsdk/gamesys/property.h
Property functions.
Type: FUNCTION Gets the resource path hash
Parameters
property (const PropVector4&) - the propertyresource (void*) - the resource to get theout_value (dmGameObject::PropertyDesc&) - the out propertyReturns
result (dmGameObject::PropertyResult) - RESULT_OK if successfulType: FUNCTION Checks if the name matches any field in the property
Parameters
property (const PropVector3&) - the propertyquery (dmhash_t) - the name to look for (e.g. hash(“pos.x”))Returns
result (bool) - true if the property contains the nameType: FUNCTION Checks if the name matches any field in the property
Parameters
property (const PropVector4&) - the propertyquery (dmhash_t) - the name to look for (e.g. hash(“pos.x”))Returns
result (bool) - true if the property contains the nameType: STRUCT
Type: STRUCT
Type: FUNCTION Updates the reference count of the resources, and returns the new resource.
Parameters
factory (dmGameObject::HFactory) - the factoryvalue (const dmGameObject::PropertyVar&) - the property containing the hash of the resources to getext (dmhash_t) - the hash of the resource file suffix (without the “.”). E.g. hash(“spritec”)out_resource (void**) - pointer to the current resource. Will also get the pointer to the new resource.Returns
result (dmGameObject::PropertyResult) - RESULT_OK if successful