Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::render::MapLayer Struct Reference

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.
 

Detailed Description

Layer of tiles or of objects.

Member Data Documentation

◆ name

std::string aegis2d::render::MapLayer::name {}

Name given in Tiled.

◆ objects

std::vector<TileObject> aegis2d::render::MapLayer::objects {}

For an object layer, its objects in order; empty for a tile layer.

◆ offset

Vec2 aegis2d::render::MapLayer::offset {}

Offset in pixels.

◆ opacity

float aegis2d::render::MapLayer::opacity = 1.0F

From 0 (transparent) to 1.

◆ properties

TileProperties aegis2d::render::MapLayer::properties {}

Custom properties.

◆ tiles

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.

◆ visible

bool aegis2d::render::MapLayer::visible = true

Shown in Tiled.


The documentation for this struct was generated from the following file: