◆ 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
◆ m_properties
'tile': Local ID of tile representing terrain
◆ m_tile
int tson::Terrain::m_tile {} |
|
private |
The documentation for this class was generated from the following file: