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

Function ComponentTypeSetCreateFn

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

Source from the content-addressed store, hash-verified

106void ComponentTypeSetNewWorldFn(HComponentType type, ComponentNewWorld fn) { type->m_NewWorldFunction = fn; }
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; }

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