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

Function SetupComponentCreateContext

engine/engine/src/engine.cpp:302–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 }
301
302 static void SetupComponentCreateContext(HEngine engine, dmGameObject::ComponentTypeCreateCtx& component_create_ctx)
303 {
304 component_create_ctx.m_Config = engine->m_Config;
305 component_create_ctx.m_Script = engine->m_GOScriptContext;
306 component_create_ctx.m_Register = engine->m_Register;
307 component_create_ctx.m_Factory = engine->m_Factory;
308 component_create_ctx.m_Contexts.SetCapacity(3, 8);
309 component_create_ctx.m_Contexts.Put(dmHashString64("graphics"), engine->m_GraphicsContext);
310 component_create_ctx.m_Contexts.Put(dmHashString64("render"), engine->m_RenderContext);
311 if (engine->m_GuiContext)
312 {
313 component_create_ctx.m_Contexts.Put(dmHashString64("gui_scriptc"), engine->m_GuiScriptContext);
314 component_create_ctx.m_Contexts.Put(dmHashString64("guic"), engine->m_GuiContext);
315 }
316 }
317
318#if !defined(DM_RELEASE)
319 static bool LoadDebugInitScripts(HEngine engine)

Callers 4

DeleteFunction · 0.85
engine.cppFile · 0.85
SetUpMethod · 0.85
TearDownMethod · 0.85

Calls 2

SetCapacityMethod · 0.45
PutMethod · 0.45

Tested by 2

SetUpMethod · 0.68
TearDownMethod · 0.68