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