Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/system/ComponentManager.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
int mtid; | int mtid; | ||||
std::string handlerName; | std::string handlerName; | ||||
std::string globalHandlerName; | std::string globalHandlerName; | ||||
JS::PersistentRootedValue msg; | JS::PersistentRootedValue msg; | ||||
}; | }; | ||||
CComponentManager::CComponentManager(CSimContext& context, shared_ptr<ScriptRuntime> rt, bool skipScriptFunctions) : | CComponentManager::CComponentManager(CSimContext& context, shared_ptr<ScriptContext> rt, bool skipScriptFunctions) : | ||||
m_NextScriptComponentTypeId(CID__LastNative), | m_NextScriptComponentTypeId(CID__LastNative), | ||||
m_ScriptInterface("Engine", "Simulation", rt), | m_ScriptInterface("Engine", "Simulation", rt), | ||||
m_SimContext(context), m_CurrentlyHotloading(false) | m_SimContext(context), m_CurrentlyHotloading(false) | ||||
{ | { | ||||
context.SetComponentManager(this); | context.SetComponentManager(this); | ||||
m_ScriptInterface.SetCallbackData(static_cast<void*> (this)); | m_ScriptInterface.SetCallbackData(static_cast<void*> (this)); | ||||
m_ScriptInterface.ReplaceNondeterministicRNG(m_RNG); | m_ScriptInterface.ReplaceNondeterministicRNG(m_RNG); | ||||
▲ Show 20 Lines • Show All 1,111 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator