24 Map(
const char* path);
30 const std::vector<tmx::Tileset>* tileSets;
31 const std::vector<tmx::Layer::Ptr>* mapLayers;
32 const tmx::Vector2u* mapSize;
33 const tmx::Vector2u* mapTileSize;
34 const std::vector<std::string>* texturePaths;
38 std::string texturePath{};
39 tmx::Vector2f textureSize;
41 tmx::Vector2u tileCount2D;
47 std::vector<std::function<void()>> tileConstructors;
49 void loadTileLayer(
const tmx::TileLayer& layer);
50 static void addTile(
float x,
float y,
const tmx::Vector2u& mapTileSize,
int u,
int v,
int zIndex, std::string texturePath,
bool collision);
53 static std::optional<T> getLayerProperty(
const std::vector<tmx::Property>& properties, std::string propertyName) {
return std::nullopt; };