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