Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/MapReader.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | class CMapReader : public CMapIO | ||||
friend class CXMLReader; | friend class CXMLReader; | ||||
public: | public: | ||||
// constructor | // constructor | ||||
CMapReader(); | CMapReader(); | ||||
~CMapReader(); | ~CMapReader(); | ||||
// LoadMap: try to load the map from given file; reinitialise the scene to new data if successful | // LoadMap: try to load the map from given file; reinitialise the scene to new data if successful | ||||
void LoadMap(const VfsPath& pathname, const ScriptContext& cx, JS::HandleValue settings, CTerrain*, WaterManager*, SkyManager*, CLightEnv*, CGameView*, | void LoadMap(const VfsPath& pathname, const ScriptContext& cx, JS::HandleValue settings, CTerrain*, SkyManager*, CLightEnv*, CGameView*, | ||||
CCinemaManager*, CTriggerManager*, CPostprocManager* pPostproc, CSimulation2*, const CSimContext*, | CCinemaManager*, CTriggerManager*, CPostprocManager* pPostproc, CSimulation2*, const CSimContext*, | ||||
int playerID, bool skipEntities); | int playerID, bool skipEntities); | ||||
void LoadRandomMap(const CStrW& scriptFile, const ScriptContext& cx, JS::HandleValue settings, CTerrain*, WaterManager*, SkyManager*, CLightEnv*, CGameView*, CCinemaManager*, CTriggerManager*, CPostprocManager* pPostproc_, CSimulation2*, int playerID); | void LoadRandomMap(const CStrW& scriptFile, const ScriptContext& cx, JS::HandleValue settings, CTerrain*, SkyManager*, CLightEnv*, CGameView*, CCinemaManager*, CTriggerManager*, CPostprocManager* pPostproc_, CSimulation2*, int playerID); | ||||
private: | private: | ||||
// Load script settings for use by scripts | // Load script settings for use by scripts | ||||
int LoadScriptSettings(); | int LoadScriptSettings(); | ||||
// load player settings only | // load player settings only | ||||
int LoadPlayerSettings(); | int LoadPlayerSettings(); | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator