11 #include <SFML/System/Vector2.hpp> 13 #include <NasNas/tilemapping/LayersContainer.hpp> 14 #include <NasNas/tilemapping/PropertiesContainer.hpp> 15 #include <NasNas/tilemapping/Tileset.hpp> 27 auto loadFromFile(
const std::string& file_name) -> bool;
28 auto loadFromString(
const std::string& data) -> bool;
30 auto getTMXFilePath()
const ->
const std::string&;
32 auto getSize()
const ->
const sf::Vector2f&;
33 auto getGridSize()
const ->
const sf::Vector2u&;
34 auto getTileSize()
const ->
const sf::Vector2u&;
36 auto allTilesets()
const ->
const std::vector<Tileset>&;
37 auto getTileTileset(
unsigned int gid)
const ->
const Tileset&;
39 void setCamera(
const Camera& cam);
44 void load(
const pugi::xml_document& xml);
46 std::string m_file_name;
47 std::string m_file_relative_path;
49 sf::Vector2u m_gridsize;
50 sf::Vector2u m_tilesize;
53 std::vector<Tileset> m_tilesets;
54 std::vector<TilesetData> m_tilesets_data;
56 const Camera* m_camera =
nullptr;