| 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) |