VEGO-Engine  0.1
Loading...
Searching...
No Matches
Map Class Reference

Public Member Functions

 Map (const char *path)
 Loads a .tmx map.
 
void generateTiles ()
 Generates the map based on the loaded definition.
 
template<>
std::optional< bool > getLayerProperty (const std::vector< tmx::Property > &properties, std::string propertyName)
 
template<>
std::optional< int > getLayerProperty (const std::vector< tmx::Property > &properties, std::string propertyName)
 

Constructor & Destructor Documentation

◆ Map()

Map::Map ( const char * path)

Loads a .tmx map.

Loads a .tmx file and extracts all relevant data. Any entities (including tiles) are only spawned once

Parameters
pathPath to the .tmx map file
See also
Map::generateTiles()

The documentation for this class was generated from the following files: