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

Function ComponentTypeSetDestroyFn

engine/gameobject/src/gameobject/component.cpp:109–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107void ComponentTypeSetDeleteWorldFn(HComponentType type, ComponentDeleteWorld fn) { type->m_DeleteWorldFunction = fn; }
108void ComponentTypeSetCreateFn(HComponentType type, ComponentCreate fn) { type->m_CreateFunction = fn; }
109void ComponentTypeSetDestroyFn(HComponentType type, ComponentDestroy fn) { type->m_DestroyFunction = fn; }
110void ComponentTypeSetInitFn(HComponentType type, ComponentInit fn) { type->m_InitFunction = fn; }
111void ComponentTypeSetFinalFn(HComponentType type, ComponentFinal fn) { type->m_FinalFunction = fn; }
112void ComponentTypeSetAddToUpdateFn(HComponentType type, ComponentAddToUpdate fn) { type->m_AddToUpdateFunction = fn; }

Callers 5

CompScriptcInitFunction · 0.85
CompMeshTypeCreateFunction · 0.85
CompGuiTypeCreateFunction · 0.85
CompLightTypeCreateFunction · 0.85
CompSoundcInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected