mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
EngineController draft
This commit is contained in:
parent
79cba1afcb
commit
c47e869bdd
11 changed files with 438 additions and 436 deletions
|
|
@ -25,6 +25,7 @@ class Screen;
|
|||
class EnginePaths;
|
||||
class ResPaths;
|
||||
class Batch2D;
|
||||
class EngineController;
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
|
|
@ -49,6 +50,7 @@ class Engine {
|
|||
std::unique_ptr<ResPaths> resPaths = nullptr;
|
||||
std::queue<runnable> postRunnables;
|
||||
std::recursive_mutex postRunnablesMutex;
|
||||
std::unique_ptr<EngineController> controller;
|
||||
|
||||
uint64_t frame = 0;
|
||||
double lastTime = 0.0;
|
||||
|
|
@ -125,6 +127,8 @@ public:
|
|||
|
||||
void saveScreenshot();
|
||||
|
||||
EngineController* getController();
|
||||
|
||||
PacksManager createPacksManager(const fs::path& worldFolder);
|
||||
|
||||
SettingsHandler& getSettingsHandler();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue