Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/MapWriter.h
Show All 39 Lines | |||||
class CMapWriter : public CMapIO | class CMapWriter : public CMapIO | ||||
{ | { | ||||
public: | public: | ||||
// constructor | // constructor | ||||
CMapWriter(); | CMapWriter(); | ||||
// SaveMap: try to save the current map to the given file | // SaveMap: try to save the current map to the given file | ||||
void SaveMap(const VfsPath& pathname, CTerrain* pTerr, | void SaveMap(const VfsPath& pathname, CTerrain* pTerr, | ||||
WaterManager* pWaterMan, SkyManager* pSkyMan, | const WaterManager* pWaterMan, SkyManager* pSkyMan, | ||||
CLightEnv* pLightEnv, CCamera* pCamera, | CLightEnv* pLightEnv, CCamera* pCamera, | ||||
CCinemaManager* pCinema, CPostprocManager* pPostproc, | CCinemaManager* pCinema, CPostprocManager* pPostproc, | ||||
CSimulation2* pSimulation2); | CSimulation2* pSimulation2); | ||||
private: | private: | ||||
// PackMap: pack the current world into a raw data stream | // PackMap: pack the current world into a raw data stream | ||||
void PackMap(CFilePacker& packer, CTerrain* pTerrain); | void PackMap(CFilePacker& packer, CTerrain* pTerrain); | ||||
// PackTerrain: pack the terrain onto the end of the data stream | // PackTerrain: pack the terrain onto the end of the data stream | ||||
void PackTerrain(CFilePacker& packer, CTerrain* pTerrain); | void PackTerrain(CFilePacker& packer, CTerrain* pTerrain); | ||||
// EnumTerrainTextures: build lists of textures used by map, and indices into this list | // EnumTerrainTextures: build lists of textures used by map, and indices into this list | ||||
// for each tile on the terrain | // for each tile on the terrain | ||||
void EnumTerrainTextures(CTerrain* pTerrain, std::vector<CStr>& textures, | void EnumTerrainTextures(CTerrain* pTerrain, std::vector<CStr>& textures, | ||||
std::vector<STileDesc>& tileIndices); | std::vector<STileDesc>& tileIndices); | ||||
// WriteXML: output some other data (entities, etc) in XML format | // WriteXML: output some other data (entities, etc) in XML format | ||||
void WriteXML(const VfsPath& pathname, WaterManager* pWaterMan, | void WriteXML(const VfsPath& pathname, const WaterManager* pWaterMan, | ||||
SkyManager* pSkyMan, CLightEnv* pLightEnv, CCamera* pCamera, | SkyManager* pSkyMan, CLightEnv* pLightEnv, CCamera* pCamera, | ||||
CPostprocManager* pPostproc, | CPostprocManager* pPostproc, | ||||
CSimulation2* pSimulation2); | CSimulation2* pSimulation2); | ||||
}; | }; | ||||
#endif | #endif |
Wildfire Games · Phabricator