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

Function ComponentTypeSetNewWorldFn

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

Source from the content-addressed store, hash-verified

104}
105
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; }

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected