mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
EngineController draft
This commit is contained in:
parent
79cba1afcb
commit
c47e869bdd
11 changed files with 438 additions and 436 deletions
44
src/logic/EngineController.hpp
Normal file
44
src/logic/EngineController.hpp
Normal 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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue