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

Function GetWorld

engine/gameobject/src/gameobject/gameobject.cpp:626–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624 }
625
626 HComponentWorld GetWorld(HCollection hcollection, uint32_t component_type_index)
627 {
628 Register* regist = GetRegister(hcollection);
629 if (component_type_index < regist->m_ComponentTypeCount)
630 {
631 return hcollection->m_Collection->m_ComponentWorlds[component_type_index];
632 }
633 else
634 {
635 return 0x0;
636 }
637 }
638
639 void* GetContext(HCollection hcollection, uint32_t component_type_index)
640 {

Callers 1

GetComponentFunction · 0.70

Calls 1

GetRegisterFunction · 0.85

Tested by

no test coverage detected