RigsofRods
Soft-body Physics Simulation
|
Binding of RoR::Terrain; represents a loaded terrain. More...
#include <TerrainClass.h>
Public Member Functions | |
General | |
string | getTerrainName () |
string | getTerrainFileName () |
string | getTerrainFileResourceGroup () |
string | getGUID () |
int | getVersion () |
Landscape | |
| |
bool | isFlat () |
Gameplay | |
vector3 | getSpawnPos () |
void | addSurveyMapEntity (const std::string &type, const std::string &filename, const std::string &resource_group, const std::string &caption, const Ogre::Vector3 &pos, float angle, int id) |
Adds an icon with description to survey map (minimap). More... | |
void | delSurveyMapEntities (int id) |
Removes all survey map icons with the given ID. More... | |
Subsystems | |
| |
ProceduralManagerClass | getProceduralManager () |
Binding of RoR::Terrain; represents a loaded terrain.
game.getTerrain()
. Definition at line 16 of file TerrainClass.h.
void Script2Game::TerrainClass::addSurveyMapEntity | ( | const std::string & | type, |
const std::string & | filename, | ||
const std::string & | resource_group, | ||
const std::string & | caption, | ||
const Ogre::Vector3 & | pos, | ||
float | angle, | ||
int | id | ||
) |
Adds an icon with description to survey map (minimap).
type | informational, optional |
filename | The file name. Don't forget to specify the resource group! |
resource_group | Leave empty to use TexturesRG ('icons.zip/famicons.zip'), otherwise use BeamClass/TerrainClass getResourceGroup() to read from actor/terrain ZIP. |
caption | optional |
pos | The world position of the point of interest, in meters. |
angle | The world yaw in radians. |
id | The race ID of the icon (>=0), or -1 if not a race icon. You can use larger negative numbers for custom IDs. |
void Script2Game::TerrainClass::delSurveyMapEntities | ( | int | id | ) |
Removes all survey map icons with the given ID.
id | The race ID of the icon (>=0), or -1 if not a race icon. You can use larger negative numbers for custom IDs. |
string Script2Game::TerrainClass::getGUID | ( | ) |
ProceduralManagerClass Script2Game::TerrainClass::getProceduralManager | ( | ) |
vector3 Script2Game::TerrainClass::getSpawnPos | ( | ) |
string Script2Game::TerrainClass::getTerrainFileName | ( | ) |
string Script2Game::TerrainClass::getTerrainFileResourceGroup | ( | ) |
string Script2Game::TerrainClass::getTerrainName | ( | ) |
int Script2Game::TerrainClass::getVersion | ( | ) |
bool Script2Game::TerrainClass::isFlat | ( | ) |