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-04-30 07:10:58 +00:00
|
|
|
void loadMap(std::shared_ptr<SDLPP::Scene> &scene, std::shared_ptr<SDLPP::RectangleRender> mario, const std::string &file, std::shared_ptr<SDLPP::Renderer> &renderer);
|
2021-05-01 19:55:43 +00:00
|
|
|
void loadMap(std::shared_ptr<SDLPP::Scene> &scene, const std::string &file, std::shared_ptr<SDLPP::Renderer> &renderer, std::vector<std::array<std::tuple<uint8_t, uint16_t, uint8_t, uint8_t, uint8_t, uint8_t>,16>> &objects);
|
|
|
|
void saveMap(const std::string &file, std::vector<std::array<std::tuple<uint8_t, uint16_t, uint8_t, uint8_t, uint8_t, uint8_t>,16>> &objects);
|
2021-04-25 20:42:55 +00:00
|
|
|
|
|
|
|
#endif
|