17#ifndef _FGE_C_OBJTILELAYER_HPP_INCLUDED
18#define _FGE_C_OBJTILELAYER_HPP_INCLUDED
20#include "FastEngine/fge_extern.hpp"
21#include "C_object.hpp"
22#include "FastEngine/C_tilelayer.hpp"
23#include "FastEngine/C_tilemap.hpp"
25#define FGE_OBJTILELAYER_CLASSNAME "FGE:OBJ:TILELAYER"
33 ObjTileLayer() =
default;
34 ObjTileLayer(std::shared_ptr<TileMap> tilemap, std::shared_ptr<TileLayer> tilelayer);
35 ~ObjTileLayer()
override =
default;
43 void setLayerName(std::string_view name);
44 [[nodiscard]] std::
string const& getLayerName() const;
45 void setData(std::shared_ptr<
TileMap> tilemap, std::shared_ptr<
TileLayer> tilelayer);
47 [[nodiscard]] std::shared_ptr<
TileMap> getTileMap() const;
56 std::weak_ptr<
TileMap> g_tileMap;
58 std::
string g_layerName;
Definition C_objTilelayer.hpp:31
fge::RectFloat getLocalBounds() const override
Get the local bounds of the object (without any transformations)
char const * getReadableClassName() const override
Get a readable version of the class name.
fge::RectFloat getGlobalBounds() const override
Get the global bounds of the object.
char const * getClassName() const override
Get the unique class name of the object.
The Object class is the base class for all objects in the engine.
Definition C_object.hpp:102
A tile layer contain a matrix of global tile id and a list of TileSet.
Definition C_tilelayer.hpp:116
Definition C_tilemap.hpp:31