◆ Chunk()
tson::Chunk::Chunk |
( |
IJson & |
json | ) |
|
|
inlineexplicit |
Parses 'chunk' data from Tiled json and stores the values in this class
- Parameters
-
◆ getBase64Data()
const std::string & tson::Chunk::getBase64Data |
( |
| ) |
const |
|
inline |
'data' (when string): Array of unsigned int (GIDs) or base64-encoded data.
- Returns
- base64 string
◆ getData()
const std::vector< int > & tson::Chunk::getData |
( |
| ) |
const |
|
inline |
'data' (when uint array): Array of unsigned int (GIDs) or base64-encoded data. tilelayer only.
- Returns
- list of tile ids
◆ getPosition()
'x' and 'y' position in tiles
- Returns
- Position in int
◆ getSize()
x='width' (in tiles) and y='height' (in tiles).
- Returns
- Size (x and y), containing the values from the fields 'width' and 'height' in Tiled
◆ parse()
bool tson::Chunk::parse |
( |
IJson & |
json | ) |
|
|
inline |
Parses 'chunk' data from Tiled json and stores the values in this class
- Parameters
-
- Returns
- true if all mandatory fields was found. false otherwise.
◆ m_base64Data
std::string tson::Chunk::m_base64Data |
|
private |
'data' (when uint array): Array of unsigned int (GIDs) or base64-encoded data. tilelayer only.
◆ m_position
x='width' (in tiles) and y='height' (in tiles):
◆ m_size
'data' (when string): Array of unsigned int (GIDs) or base64-encoded data.
The documentation for this class was generated from the following file: