#include <Frame.hpp>
◆ Frame() [1/3]
◆ Frame() [2/3]
tson::Frame::Frame |
( |
int |
duration, |
|
|
uint32_t |
tileId |
|
) |
| |
|
inline |
- Parameters
-
duration | duration in milliseconds |
tileId | TileId |
◆ Frame() [3/3]
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.
The documentation for this class was generated from the following file:
- /home/robin/git/c++/tileson/include/tiled/Frame.hpp