#include <WangColor.hpp>
◆ WangColor() [1/2]
tson::WangColor::WangColor |
( |
| ) |
|
|
inlinedefault |
◆ WangColor() [2/2]
◆ 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.
◆ getClass()
◆ getClassType()
const std::string & tson::WangColor::getClassType |
( |
| ) |
const |
|
inline |
◆ 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
◆ parse()
The documentation for this class was generated from the following files: