18#ifndef INCLUDED_MAPREADER
19#define INCLUDED_MAPREADER
58 int playerID,
bool skipEntities);
60 void LoadRandomMap(
const CStrW& scriptFile,
const ScriptContext& cx, JS::HandleValue settings,
CTerrain*,
WaterManager*,
SkyManager*,
CLightEnv*,
CGameView*,
CCinemaManager*, CTriggerManager*,
CPostprocManager* pPostproc_,
CSimulation2*,
int playerID);
u32 PSRETURN
Definition: Errors.h:75
Class for in game playing of cinematics.
Definition: CinemaManager.h:29
helper class for reading binary files
Definition: FileIo.h:101
Definition: GameView.h:37
Class CLightEnv: description of a lighting environment - contains all the necessary parameters for re...
Definition: LightEnv.h:37
Definition: MapReader.h:47
int ParseEnvironment()
Definition: MapReader.cpp:1533
int ApplyData()
Definition: MapReader.cpp:368
CVector3D m_StartingCamera
Definition: MapReader.h:144
CStrW m_Script
Definition: MapReader.h:118
bool m_SkipEntities
Definition: MapReader.h:139
int LoadRMSettings()
Definition: MapReader.cpp:1321
int m_PlayerID
Definition: MapReader.h:138
CGameView * pGameView
Definition: MapReader.h:133
CXMLReader * xml_reader
Definition: MapReader.h:151
size_t cur_terrain_tex
Definition: MapReader.h:148
int LoadScriptSettings()
Definition: MapReader.cpp:1262
size_t num_terrain_tex
Definition: MapReader.h:149
CFileUnpacker unpacker
Definition: MapReader.h:127
CCinemaManager * pCinema
Definition: MapReader.h:134
int ApplyTerrainData()
Definition: MapReader.cpp:326
int PollMapGeneration()
Definition: MapReader.cpp:1367
CLightEnv m_LightEnv
Definition: MapReader.h:116
int ParseCamera()
Definition: MapReader.cpp:1629
int UnpackTerrain()
Definition: MapReader.cpp:276
CPostprocManager * pPostproc
Definition: MapReader.h:131
bool only_xml
Definition: MapReader.h:141
const CSimContext * pSimContext
Definition: MapReader.h:137
u32 file_format_version
Definition: MapReader.h:142
std::vector< STileDesc > m_Tiles
Definition: MapReader.h:114
~CMapReader()
Definition: MapReader.cpp:1667
SkyManager * pSkyMan
Definition: MapReader.h:130
int ReadXML()
Definition: MapReader.cpp:1290
int ReadXMLEntities()
Definition: MapReader.cpp:1301
CSimulation2 * pSimulation2
Definition: MapReader.h:136
int StartMapGeneration(const CStrW &scriptFile)
Definition: MapReader.cpp:1336
CLightEnv * pLightEnv
Definition: MapReader.h:132
void LoadMap(const VfsPath &pathname, const ScriptContext &cx, JS::HandleValue settings, CTerrain *, WaterManager *, SkyManager *, CLightEnv *, CGameView *, CCinemaManager *, CTriggerManager *, CPostprocManager *pPostproc, CSimulation2 *, const CSimContext *, int playerID, bool skipEntities)
Definition: MapReader.cpp:73
int ParseEntities()
Definition: MapReader.cpp:1469
int ParseTerrain()
Definition: MapReader.cpp:1392
int LoadMapSettings()
Definition: MapReader.cpp:1283
VfsPath filename_xml
Definition: MapReader.h:140
void LoadRandomMap(const CStrW &scriptFile, const ScriptContext &cx, JS::HandleValue settings, CTerrain *, WaterManager *, SkyManager *, CLightEnv *, CGameView *, CCinemaManager *, CTriggerManager *, CPostprocManager *pPostproc_, CSimulation2 *, int playerID)
Definition: MapReader.cpp:182
WaterManager * pWaterMan
Definition: MapReader.h:129
CTerrain * pTerrain
Definition: MapReader.h:128
std::unique_ptr< GeneratorState > m_GeneratorState
Definition: MapReader.h:125
JS::PersistentRootedValue m_ScriptSettings
Definition: MapReader.h:121
ssize_t m_PatchesPerSide
Definition: MapReader.h:108
JS::PersistentRootedValue m_MapData
Definition: MapReader.h:122
CTriggerManager * pTrigMan
Definition: MapReader.h:135
int LoadPlayerSettings()
Definition: MapReader.cpp:1275
entity_id_t m_StartingCameraTarget
Definition: MapReader.h:143
std::vector< u16 > m_Heightmap
Definition: MapReader.h:110
std::vector< CTerrainTextureEntry * > m_TerrainTextures
Definition: MapReader.h:112
A restricted map reader that returns various summary information for use by scripts (particularly the...
Definition: MapReader.h:159
void GetMapSettings(const ScriptInterface &scriptInterface, JS::MutableHandleValue)
Returns a value of the form:
Definition: MapReader.cpp:440
PSRETURN LoadMap(const VfsPath &pathname)
Try to load a map file.
Definition: MapReader.cpp:409
CStr m_ScriptSettings
Definition: MapReader.h:178
Definition: PostprocManager.h:32
Contains pointers to various 'global' objects that are needed by the simulation code,...
Definition: SimContext.h:33
Public API for simulation system.
Definition: Simulation2.h:47
Definition: TerrainTextureEntry.h:33
Definition: Vector3D.h:31
Definition: MapReader.cpp:462
Abstraction around a SpiderMonkey JSContext.
Definition: ScriptContext.h:46
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:72
Class SkyManager: Maintain sky settings and textures, and render the sky.
Definition: SkyManager.h:38
Class WaterManager: Maintain rendering-related water settings and textures Anything that affects game...
Definition: WaterManager.h:48
u32 entity_id_t
Entity ID type.
Definition: Entity.h:29
Definition: MapReader.cpp:1331
uint32_t u32
Definition: types.h:39
intptr_t ssize_t
Definition: wposix_types.h:82