EngineController draft

This commit is contained in:
MihailRis
2024-04-21 01:30:35 +03:00
parent 79cba1afcb
commit c47e869bdd
11 changed files with 438 additions and 436 deletions
+44
View File
@@ -0,0 +1,44 @@
#ifndef LOGIC_ENGINE_CONTROLLER_HPP_
#define LOGIC_ENGINE_CONTROLLER_HPP_
#include <string>
#include <vector>
class Engine;
class World;
class LevelController;
class EngineController {
Engine* engine;
public:
EngineController(Engine* engine);
/// @brief Load world, convert if required and set to LevelScreen.
/// @param name world name
/// @param confirmConvert automatically confirm convert if requested
void openWorld(std::string name, bool confirmConvert);
/// @brief Show world removal confirmation dialog
/// @param name world name
void deleteWorld(std::string name);
void removePacks(
LevelController* controller,
std::vector<std::string> packs
);
void addPacks(
LevelController* controller,
std::vector<std::string> packs
);
void createWorld(
const std::string& name,
const std::string& seedstr,
const std::string& generatorID
);
void reopenWorld(World* world);
};
#endif // LOGIC_ENGINE_CONTROLLER_HPP_