◆ get()
template<typename T >
T tson::WangSet::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.
◆ getColor()
NB! Will only work with maps created/modified by Tiled v1.5 or later! Gets a color from a wangset by its name.
- Parameters
-
- Returns
- The WangColor with the given name or nullptr if it doesn't exist.
◆ getColors()
Get Wangset colors (new in Tiled v1.5)
- Returns
◆ getCornerColors()
const std::vector< tson::WangColor > & tson::WangSet::getCornerColors |
( |
| ) |
const |
|
inline |
'cornercolors': Array of Wang colors
- Returns
◆ getEdgeColors()
const std::vector< tson::WangColor > & tson::WangSet::getEdgeColors |
( |
| ) |
const |
|
inline |
'edgecolors': Array of Wang colors
- Returns
◆ getName()
const std::string & tson::WangSet::getName |
( |
| ) |
const |
|
inline |
'name': Name of the Wang set
- Returns
◆ getProp()
Shortcut for getting a property object. Alternative to getProperties().getProperty("<name>");
- Parameters
-
- Returns
◆ getProperties()
'properties': A list of properties (name, value, type).
- Returns
◆ getTile()
int tson::WangSet::getTile |
( |
| ) |
const |
|
inline |
'tile': Local ID of tile representing the Wang set
- Returns
◆ getWangTiles()
const std::vector< tson::WangTile > & tson::WangSet::getWangTiles |
( |
| ) |
const |
|
inline |
'wangtiles': Array of Wang tiles
- Returns
◆ parseTiled15Props()
bool tson::WangSet::parseTiled15Props |
( |
tson::IJson & |
json | ) |
|
|
inlineprivate |
Declared in tileson_forward.hpp
Parsing data related to Tiled v1.5 changes
- Parameters
-
json | The json containing data |
- Returns
- Returns true if success
◆ m_class
'class': The class of this map (since 1.9, defaults to “”).
◆ m_colors
'properties': A list of properties (name, value, type).
◆ m_cornerColors
'wangtiles': Array of Wang tiles
◆ m_edgeColors
'cornercolors': Array of Wang colors
◆ m_map
◆ m_properties
'edgecolors': Array of Wang colors
◆ m_tile
int tson::WangSet::m_tile {} |
|
private |
'name': Name of the Wang set
◆ m_wangTiles
'tile': Local ID of tile representing the Wang set
The documentation for this class was generated from the following file: