◆ Frame() [1/2]
tson::Frame::Frame |
( |
int |
duration, |
|
|
uint32_t |
tileId |
|
) |
| |
|
inline |
- Parameters
-
duration | duration in milliseconds |
tileId | TileId |
◆ Frame() [2/2]
tson::Frame::Frame |
( |
IJson & |
json | ) |
|
|
inlineexplicit |
Parses frame data from json
- Parameters
-
◆ getDuration()
int tson::Frame::getDuration |
( |
| ) |
const |
|
inline |
'duration': Frame duration in milliseconds
- Returns
- Duration in milliseconds
◆ getTileId()
uint32_t tson::Frame::getTileId |
( |
| ) |
const |
|
inline |
'tileid': Local tile ID representing this frame
- Returns
- tile id
◆ parse()
bool tson::Frame::parse |
( |
IJson & |
json | ) |
|
|
inline |
Parses frame data from json
- Parameters
-
- Returns
- true if all mandatory fields was found. false otherwise.
◆ m_tileId
uint32_t tson::Frame::m_tileId {} |
|
private |
'duration': Frame duration in milliseconds
The documentation for this class was generated from the following file: