-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AngelScript: added
TerrainClass
(ref)
BREAKING CHANGE: removed `int GameScript::getLoadedTerrain(string&)`. INTERNAL: * global variable `App::g_sim_terrain` removed, replaced by new variable `GameContext::m_terrain`. * static factory func Terrain::LoadAndPrepareTerrain() changed to Terrain::initialize(), loading now done by GameContext.
- Loading branch information
Showing
16 changed files
with
217 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
namespace Script2Game { | ||
|
||
/** \addtogroup ScriptSideAPIs | ||
* @{ | ||
*/ | ||
|
||
/** \addtogroup Script2Game | ||
* @{ | ||
*/ | ||
|
||
/** | ||
* @brief Binding of RoR::Terrain; represents a loaded terrain. | ||
* @note Obtain the object using `game.getTerrain()`. | ||
*/ | ||
class TerrainClass | ||
{ | ||
public: | ||
/** | ||
* @return Full name of the terrain | ||
*/ | ||
string getTerrainName(); | ||
|
||
/** | ||
* @return GUID (global unique ID) of the terrain, or empty string if not specified. | ||
*/ | ||
string getGUID(); | ||
|
||
/** | ||
* @return true if specified as flat (no heightmap). | ||
*/ | ||
bool isFlat(); | ||
|
||
/** | ||
* @return version of the terrain, as specified by author. | ||
*/ | ||
int getVersion(); | ||
|
||
/** | ||
* @return Player spawn position when entering game. | ||
*/ | ||
vector3 getSpawnPos(); | ||
}; | ||
|
||
/// @} //addtogroup Script2Game | ||
/// @} //addtogroup ScriptSideAPIs | ||
|
||
} //namespace Script2Game |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.