Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/system/ComponentManager.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | private: | ||||
}; | }; | ||||
public: | public: | ||||
CComponentManager(CSimContext&, shared_ptr<ScriptRuntime> rt, bool skipScriptFunctions = false); | CComponentManager(CSimContext&, shared_ptr<ScriptRuntime> rt, bool skipScriptFunctions = false); | ||||
~CComponentManager(); | ~CComponentManager(); | ||||
void LoadComponentTypes(); | void LoadComponentTypes(); | ||||
static std::vector<entity_id_t> m_Corpses; | |||||
/** | /** | ||||
* Load a script and execute it in a new function scope. | * Load a script and execute it in a new function scope. | ||||
* @param filename VFS path to load | * @param filename VFS path to load | ||||
* @param hotload set to true if this script has been loaded before, and redefinitions of | * @param hotload set to true if this script has been loaded before, and redefinitions of | ||||
* existing components should not be considered errors | * existing components should not be considered errors | ||||
*/ | */ | ||||
bool LoadScript(const VfsPath& filename, bool hotload = false); | bool LoadScript(const VfsPath& filename, bool hotload = false); | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator