Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/World.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2020 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 56 Lines • ▼ Show 20 Lines | |||||
public: | public: | ||||
CWorld(CGame *pGame); | CWorld(CGame *pGame); | ||||
~CWorld(); | ~CWorld(); | ||||
/* | /* | ||||
Initialize the World - load the map and all objects | Initialize the World - load the map and all objects | ||||
*/ | */ | ||||
void RegisterInit(const CStrW& mapFile, JSRuntime* rt, JS::HandleValue settings, int playerID); | void RegisterInit(const CStrW& mapFile, const ScriptContext& cx, JS::HandleValue settings, int playerID); | ||||
/* | /* | ||||
Initialize the World - generate and load the random map | Initialize the World - generate and load the random map | ||||
*/ | */ | ||||
void RegisterInitRMS(const CStrW& scriptFile, JSRuntime* rt, 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 the pointer to the terrain object. | ||||
Show All 20 Lines |
Wildfire Games · Phabricator