Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/World.h
/* Copyright (C) 2021 Wildfire Games. | /* Copyright (C) 2023 Wildfire Games. | ||||
* This file is part of 0!A.D. | * This file is part of 0!A.D. | ||||
* | * | ||||
* 0!A.D. is free software: you can redistribute it and/or modify | * 0!A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0!A.D. is distributed in the hope that it will be useful, | * 0!A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | public: | ||||
void RegisterInitRMS(const CStrW& scriptFile, const ScriptContext& cx, JS::HandleValue settings, int playerID); | void RegisterInitRMS(const CStrW& scriptFile, const ScriptContext& cx, JS::HandleValue settings, int playerID); | ||||
/** | /** | ||||
* Explicitly delete m_MapReader once the map has finished loading. | * Explicitly delete m_MapReader once the map has finished loading. | ||||
**/ | **/ | ||||
int DeleteMapReader(); | int DeleteMapReader(); | ||||
/** | /** | ||||
* Get the pointer to the terrain object. | * Get a reference to the terrain object. | ||||
* | * | ||||
* @return CTerrain * the value of m_Terrain. | * @return CTerrain& dereferenced m_Terrain. | ||||
**/ | **/ | ||||
inline CTerrain *GetTerrain() | CTerrain& GetTerrain() | ||||
{ return m_Terrain; } | { | ||||
return *m_Terrain; | |||||
} | |||||
/** | /** | ||||
* Get a reference to the unit manager object. | * Get a reference to the unit manager object. | ||||
* | * | ||||
* @return CUnitManager & dereferenced m_UnitManager. | * @return CUnitManager& dereferenced m_UnitManager. | ||||
**/ | **/ | ||||
inline CUnitManager &GetUnitManager() | CUnitManager& GetUnitManager() | ||||
{ return *m_UnitManager; } | { | ||||
return *m_UnitManager; | |||||
} | |||||
}; | }; | ||||
// rationale: see definition. | // rationale: see definition. | ||||
class CLightEnv; | class CLightEnv; | ||||
extern CLightEnv g_LightEnv; | extern CLightEnv g_LightEnv; | ||||
#endif | #endif |
Wildfire Games · Phabricator