Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/Simulation2.h
Show All 16 Lines | |||||
#ifndef INCLUDED_SIMULATION2 | #ifndef INCLUDED_SIMULATION2 | ||||
#define INCLUDED_SIMULATION2 | #define INCLUDED_SIMULATION2 | ||||
#include "lib/file/vfs/vfs_path.h" | #include "lib/file/vfs/vfs_path.h" | ||||
#include "simulation2/helpers/SimulationCommand.h" | #include "simulation2/helpers/SimulationCommand.h" | ||||
#include "simulation2/system/CmpPtr.h" | #include "simulation2/system/CmpPtr.h" | ||||
#include "simulation2/system/Components.h" | #include "simulation2/system/Components.h" | ||||
#include "simulation2/system/ComponentDataHolder.h" | |||||
#include <ostream> | #include <ostream> | ||||
#include <string> | #include <string> | ||||
#include <unordered_map> | #include <unordered_map> | ||||
#include <vector> | #include <vector> | ||||
class CFrustum; | class CFrustum; | ||||
class CMessage; | class CMessage; | ||||
▲ Show 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | public: | ||||
* associated entities, sorted by entity ID. | * associated entities, sorted by entity ID. | ||||
*/ | */ | ||||
InterfaceList GetEntitiesWithInterface(int iid); | InterfaceList GetEntitiesWithInterface(int iid); | ||||
/** | /** | ||||
* Returns a list of components implementing the given interface, and their | * Returns a list of components implementing the given interface, and their | ||||
* associated entities, as an unordered map. | * associated entities, as an unordered map. | ||||
*/ | */ | ||||
const InterfaceListUnordered& GetEntitiesWithInterfaceUnordered(int iid); | SComponentDataGenerator* GetEntitiesWithInterfaceUnordered(int iid); | ||||
const CSimContext& GetSimContext() const; | const CSimContext& GetSimContext() const; | ||||
ScriptInterface& GetScriptInterface() const; | ScriptInterface& GetScriptInterface() const; | ||||
bool ComputeStateHash(std::string& outHash, bool quick); | bool ComputeStateHash(std::string& outHash, bool quick); | ||||
bool DumpDebugState(std::ostream& stream); | bool DumpDebugState(std::ostream& stream); | ||||
bool SerializeState(std::ostream& stream); | bool SerializeState(std::ostream& stream); | ||||
bool DeserializeState(std::istream& stream); | bool DeserializeState(std::istream& stream); | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator