#ifndef MAPLOADER_H #define MAPLOADER_H #include "../sdlpp/sdlpp_scene.hpp" #include "../sdlpp/sdlpp_rectrenderer.hpp" struct MapObject { enum Index { TERRAIN_TYPE = 0, TERRAIN_ID = 1, CHARACTER_TYPE = 2, CHARACTER_ID = 3, MODIFIER_TYPE = 4, MODIFIER_DATA = 5, }; }; typedef std::tuple mapObjectType; typedef std::array mapColumnType; void loadMap(std::shared_ptr &scene, std::shared_ptr mario, const std::string &file, std::shared_ptr &renderer); void loadMap(std::shared_ptr &scene, const std::string &file, std::shared_ptr &renderer, std::vector &objects); void saveMap(const std::string &file, std::vector &objects); #endif