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

Shape placed on the map: a spawn point, a trigger area, a tile placed freely. More...

#include <aegis2d/render/tile_map.hpp>

Public Attributes

int id = 0
 Unique id in the map.
 
std::string name {}
 Name given in Tiled.
 
std::string type {}
 Class given in Tiled (type before Tiled 1.9).
 
Vec2 position {}
 Top-left corner in pixels (bottom-left for a tile object, as in Tiled).
 
Vec2 size {}
 Size in pixels; 0 for a point.
 
float rotation = 0.0F
 Rotation in degrees, clockwise.
 
std::optional< std::uint32_t > gid {}
 Global id of the tile it shows (flip bits included), if it is a tile object.
 
bool visible = true
 Shown in Tiled.
 
TileProperties properties {}
 Custom properties.
 

Detailed Description

Shape placed on the map: a spawn point, a trigger area, a tile placed freely.

Member Data Documentation

◆ gid

std::optional<std::uint32_t> aegis2d::render::TileObject::gid {}

Global id of the tile it shows (flip bits included), if it is a tile object.

◆ id

int aegis2d::render::TileObject::id = 0

Unique id in the map.

◆ name

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

Name given in Tiled.

◆ position

Vec2 aegis2d::render::TileObject::position {}

Top-left corner in pixels (bottom-left for a tile object, as in Tiled).

◆ properties

TileProperties aegis2d::render::TileObject::properties {}

Custom properties.

◆ rotation

float aegis2d::render::TileObject::rotation = 0.0F

Rotation in degrees, clockwise.

◆ size

Vec2 aegis2d::render::TileObject::size {}

Size in pixels; 0 for a point.

◆ type

std::string aegis2d::render::TileObject::type {}

Class given in Tiled (type before Tiled 1.9).

◆ visible

bool aegis2d::render::TileObject::visible = true

Shown in Tiled.


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