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

Method createResources

IntrinsicCore/src/IntrinsicCoreComponentsScript.cpp:24–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace Components
23{
24void ScriptManager::createResources(const ScriptRefArray& p_Scripts)
25{
26 for (uint32_t scriptIdx = 0u; scriptIdx < p_Scripts.size(); ++scriptIdx)
27 {
28 ScriptRef scriptRef = p_Scripts[scriptIdx];
29 Resources::ScriptRef& scriptResRef = _script(scriptRef);
30
31 scriptResRef = Resources::ScriptManager::_getResourceByName(
32 _descScriptName(scriptRef));
33
34 if (scriptResRef.isValid())
35 {
36 Resources::ScriptManager::callOnCreate(scriptResRef, scriptRef);
37 }
38 }
39}
40
41// <-
42

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected