MCPcopy Create free account
hub / github.com/begla/Intrinsic / init

Method init

IntrinsicCore/src/IntrinsicCoreComponentsScript.h:48–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 _INTR_MAX_SCRIPT_COMPONENT_COUNT>
47{
48 static void init()
49 {
50 _INTR_LOG_INFO("Inititializing Script Component Manager...");
51
52 Dod::Components::ComponentManagerBase<
53 ScriptData, _INTR_MAX_SCRIPT_COMPONENT_COUNT>::_initComponentManager();
54
55 Dod::Components::ComponentManagerEntry scriptEntry;
56 {
57 scriptEntry.createFunction = Components::ScriptManager::createScript;
58 scriptEntry.destroyFunction = Components::ScriptManager::destroyScript;
59 scriptEntry.createResourcesFunction =
60 Components::ScriptManager::createResources;
61 scriptEntry.destroyResourcesFunction =
62 Components::ScriptManager::destroyResources;
63 scriptEntry.getComponentForEntityFunction =
64 Components::ScriptManager::getComponentForEntity;
65 scriptEntry.resetToDefaultFunction =
66 Components::ScriptManager::resetToDefault;
67
68 Application::_componentManagerMapping[_N(Script)] = scriptEntry;
69 Application::_orderedComponentManagers.push_back(scriptEntry);
70 }
71
72 Dod::PropertyCompilerEntry propCompilerScript;
73 {
74 propCompilerScript.compileFunction =
75 Components::ScriptManager::compileDescriptor;
76 propCompilerScript.initFunction =
77 Components::ScriptManager::initFromDescriptor;
78 propCompilerScript.ref = Dod::Ref();
79 Application::_componentPropertyCompilerMapping[_N(Script)] =
80 propCompilerScript;
81 }
82 }
83
84 // <-
85

Callers

nothing calls this directly

Calls 2

RefClass · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected