2021-04-25 20:42:55 +00:00
|
|
|
#ifndef MAPLOADER_H
|
|
|
|
#define MAPLOADER_H
|
|
|
|
|
|
|
|
#include "../sdlpp/sdlpp_scene.hpp"
|
|
|
|
#include "../sdlpp/sdlpp_rectrenderer.hpp"
|
2021-06-07 21:48:28 +00:00
|
|
|
#include "mapobject.hpp"
|
2021-04-25 20:42:55 +00:00
|
|
|
|
2021-10-18 07:08:35 +00:00
|
|
|
typedef std::array<MapObject, 16> mapColumnType;
|
2021-05-08 22:43:53 +00:00
|
|
|
|
2021-10-18 07:08:35 +00:00
|
|
|
void loadMap(std::shared_ptr<SDLPP::Scene> &scene,
|
|
|
|
std::shared_ptr<SDLPP::RenderObject> mario,
|
|
|
|
const std::string &file);
|
|
|
|
void loadMap(std::shared_ptr<SDLPP::Scene> &scene,
|
|
|
|
std::shared_ptr<SDLPP::RenderObject> &mario,
|
|
|
|
const std::string &file, std::vector<mapColumnType> &objects,
|
|
|
|
bool editor = false, size_t editor_width = 0);
|
|
|
|
void saveMap(const std::string &file, std::vector<mapColumnType> &objects);
|
2021-04-25 20:42:55 +00:00
|
|
|
|
|
|
|
#endif
|