game/mario/scenes/editor_scenes.hpp
zv0n c453c2fe9a
All checks were successful
continuous-integration/drone/push Build is passing
Formatting
2022-11-19 23:10:33 +01:00

25 lines
805 B
C++

#ifndef EDITOR_SCENES_HPP
#define EDITOR_SCENES_HPP
#include "../../sdlpp/sdlpp_scene.hpp"
#include "../gui/gui.hpp"
#include <functional>
#include "shared_scenes.hpp"
extern std::mutex render_mutex;
extern std::vector<SceneStruct> game_scenes;
void saveMapCallback(void *input, Button *caller);
void loadMapDialogCallback(const std::string &level_name);
SceneStruct createEditorScene(std::shared_ptr<SDLPP::Renderer> &renderer);
SceneStruct
createEditorMainMenuScene(std::shared_ptr<SDLPP::Renderer> &renderer,
bool *quit_flag);
SceneStruct
createEditorFileChoiceScene(std::shared_ptr<SDLPP::Renderer> &renderer);
SceneStruct createTextScene(std::shared_ptr<SDLPP::Renderer> renderer,
std::function<void(const std::string &)> finalizer);
#endif