FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::TileMap Struct Reference
Inheritance diagram for fge::TileMap:

Public Types

using TileSetList = std::vector<std::shared_ptr<TileSet>>
using TileLayerList = std::vector<std::shared_ptr<BaseLayer>>

Public Member Functions

void clear ()
TileLayerList::value_type * findLayerName (std::string_view name)
TileLayerList::value_type const * findLayerName (std::string_view name) const
bool loadFromFile (std::filesystem::path const &path)
void save (nlohmann::json &jsonObject) const
void load (nlohmann::json &jsonObject, std::filesystem::path const &filePath)
void generateObjects (fge::Scene &scene, fge::ObjectPlan basePlan=fge::ObjectPlan { 100 })
ObjectDataShared retrieveGeneratedTilelayerObject (std::string_view layerName) const

Static Public Member Functions

static std::shared_ptr< TileMapcreate ()

Public Attributes

TileLayerList _layers
TileSetList _tileSets
std::vector< ObjectDataWeak > _generatedObjects

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