30 switch (renderObject.index()) {
32 std::get_if<bl::gfx::BatchSlideshowSimple>(&renderObject)->getPlayer().play();
35 (*std::get_if<std::shared_ptr<bl::gfx::Animation2D>>(&renderObject))->getPlayer().play();
Core classes and functionality for both the editor and game.
Data representation of a tile in a Map TileLayer.
void step()
Triggers the animation when the tile is stepped on.
IdType id() const
Returns the id of the image or animation of this tile.
Tile()
Makes a blank tile.
bool isAnimation() const
Returns whether this tile is an animation or not.
void set(IdType id, bool anim)
Sets the information of the tile.