◆ get()
template<typename T >
T tson::WangColor::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()
'color': Color object created from hex-formatted string (#RRGGBB or #AARRGGBB)
- Returns
◆ getName()
const std::string & tson::WangColor::getName |
( |
| ) |
const |
|
inline |
'name': Name of the Wang color
- Returns
◆ getProbability()
float tson::WangColor::getProbability |
( |
| ) |
const |
|
inline |
'probability': Probability used when randomizing
- Returns
◆ getProp()
Shortcut for getting a property object. Alternative to getProperties().getProperty("<name>");
- Parameters
-
- Returns
◆ getProperties()
New property in Tiled v1.5 when data is contained in 'colors' of a wangset 'properties': A list of properties (name, value, type).
- Returns
◆ getTile()
int tson::WangColor::getTile |
( |
| ) |
const |
|
inline |
'tile': Local ID of tile representing the Wang color
- Returns
◆ m_class
'class': The class of this map (since 1.9, defaults to “”).
◆ m_color
Declared in tileson_forward.hpp
◆ m_map
'properties': A list of properties (name, value, type).
◆ m_name
std::string tson::WangColor::m_name |
|
private |
'color': Hex-formatted color (#RRGGBB or #AARRGGBB)
◆ m_probability
float tson::WangColor::m_probability {} |
|
private |
'name': Name of the Wang color
◆ m_properties
'tile': Local ID of tile representing the Wang color
◆ m_tile
int tson::WangColor::m_tile {} |
|
private |
'probability': Probability used when randomizing
The documentation for this class was generated from the following file: