23 Map(
const char* path);
28 const std::vector<tmx::Tileset>* tileSets;
29 const std::vector<tmx::Layer::Ptr>* mapLayers;
30 const tmx::Vector2u* mapSize;
31 const tmx::Vector2u* mapTileSize;
32 const std::vector<std::string>* texturePaths;
36 std::string texturePath{};
37 tmx::Vector2f textureSize;
39 tmx::Vector2u tileCount2D;
45 std::vector<std::function<void()>> tileConstructors;
47 void loadTileLayer(
const tmx::TileLayer& layer);
48 static void addTile(
float x,
float y,
const tmx::Vector2u& mapTileSize,
int u,
int v,
int zIndex, std::string texturePath,
bool hasCollision);
51 static std::optional<T> getLayerProperty(
const std::vector<tmx::Property>& properties, std::string propertyName) {
return std::nullopt; };