MCPcopy Create free account
hub / github.com/defold/defold / GetPropertyOptionsIndex

Function GetPropertyOptionsIndex

engine/gameobject/src/gameobject/gameobject.cpp:4106–4114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4104 }
4105
4106 PropertyResult GetPropertyOptionsIndex(HPropertyOptions options, uint32_t index, int32_t* result)
4107 {
4108 if (!options || index >= options->m_OptionsCount)
4109 return PROPERTY_RESULT_INVALID_INDEX;
4110 if (options->m_Options[index].m_HasKey)
4111 return PROPERTY_RESULT_TYPE_MISMATCH;
4112 *result = options->m_Options[index].m_Index;
4113 return PROPERTY_RESULT_OK;
4114 }
4115
4116 PropertyResult GetPropertyOptionsKey(HPropertyOptions options, uint32_t index, dmhash_t* result)
4117 {

Callers 14

CheckGetPropertyResultFunction · 0.85
HandleGoSetResultFunction · 0.85
CompMeshGetPropertyFunction · 0.85
CompMeshSetPropertyFunction · 0.85
CompLabelGetPropertyFunction · 0.85
CompLabelSetPropertyFunction · 0.85
CompSpriteGetPropertyFunction · 0.85
CompSpriteSetPropertyFunction · 0.85
CompModelGetPropertyFunction · 0.85
CompModelSetPropertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected