#include <Terrain.hpp>
◆ Terrain() [1/3]
tson::Terrain::Terrain |
( |
| ) |
|
|
inlinedefault |
◆ Terrain() [2/3]
tson::Terrain::Terrain |
( |
std::string |
name, |
|
|
int |
tile |
|
) |
| |
|
inline |
◆ Terrain() [3/3]
tson::Terrain::Terrain |
( |
IJson & |
json | ) |
|
|
inlineexplicit |
◆ get()
template<typename T >
T tson::Terrain::get |
( |
const std::string & |
name | ) |
|
|
inline |
A shortcut for getting a property. Alternative to getProperties().getValue<T>("<name>")
- Template Parameters
-
- Parameters
-
- Returns
- The actual value, if it exists. Otherwise: The default value of the type.
◆ getName()
const std::string & tson::Terrain::getName |
( |
| ) |
const |
|
inline |
'name': Name of terrain
- Returns
◆ getProp()
Shortcut for getting a property object. Alternative to getProperties().getProperty("<name>");
- Parameters
-
- Returns
◆ getProperties()
'properties': A list of properties (name, value, type). Missing from the official Tiled documentation...
- Returns
◆ getTile()
int tson::Terrain::getTile |
( |
| ) |
const |
|
inline |
'tile': Local ID of tile representing terrain
- Returns
◆ parse()
bool tson::Terrain::parse |
( |
IJson & |
json | ) |
|
|
inline |
The documentation for this class was generated from the following file: