21 lines
748 B
C++
21 lines
748 B
C++
#ifndef MAPLOADER_H
|
|
#define MAPLOADER_H
|
|
|
|
#include "../sdlpp/sdlpp_scene.hpp"
|
|
#include "../sdlpp/sdlpp_rectrenderer.hpp"
|
|
#include "mapobject.hpp"
|
|
|
|
typedef std::array<MapObject, 16> mapColumnType;
|
|
|
|
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 loadEmptyMap(std::vector<mapColumnType> &objects, size_t editor_width);
|
|
void saveMap(const std::string &file, std::vector<mapColumnType> &objects);
|
|
|
|
#endif
|