|
Aegis2D
Modular C++26 2D game engine for networked games
|
Layer of tiles or of objects. More...
#include <aegis2d/render/tile_map.hpp>
Public Attributes | |
| std::string | name {} |
| Name given in Tiled. | |
| std::vector< std::uint32_t > | tiles {} |
| For a tile layer, the global id of each cell (flip bits included), row by row from the top-left, 0 for an empty one; empty for an object layer. | |
| std::vector< TileObject > | objects {} |
| For an object layer, its objects in order; empty for a tile layer. | |
| bool | visible = true |
| Shown in Tiled. | |
| float | opacity = 1.0F |
| From 0 (transparent) to 1. | |
| Vec2 | offset {} |
| Offset in pixels. | |
| TileProperties | properties {} |
| Custom properties. | |
Layer of tiles or of objects.
| std::string aegis2d::render::MapLayer::name {} |
Name given in Tiled.
| std::vector<TileObject> aegis2d::render::MapLayer::objects {} |
For an object layer, its objects in order; empty for a tile layer.
| Vec2 aegis2d::render::MapLayer::offset {} |
Offset in pixels.
| float aegis2d::render::MapLayer::opacity = 1.0F |
From 0 (transparent) to 1.
| TileProperties aegis2d::render::MapLayer::properties {} |
Custom properties.
| std::vector<std::uint32_t> aegis2d::render::MapLayer::tiles {} |
For a tile layer, the global id of each cell (flip bits included), row by row from the top-left, 0 for an empty one; empty for an object layer.
| bool aegis2d::render::MapLayer::visible = true |
Shown in Tiled.