mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
engine initialization minor refactor + fix
This commit is contained in:
parent
d5d0ba8959
commit
252e9f0d19
2 changed files with 46 additions and 38 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "assets/Assets.h"
|
||||
#include "content/Content.h"
|
||||
#include "content/ContentPack.h"
|
||||
#include "content/PacksManager.h"
|
||||
#include "files/engine_paths.h"
|
||||
#include "files/settings_io.h"
|
||||
|
||||
|
|
@ -59,6 +60,7 @@ class Engine {
|
|||
void updateHotkeys();
|
||||
void renderFrame(Batch2D& batch);
|
||||
void processPostRunnables();
|
||||
void loadAssets();
|
||||
public:
|
||||
Engine(EngineSettings& settings, EnginePaths* paths);
|
||||
~Engine();
|
||||
|
|
@ -121,6 +123,8 @@ public:
|
|||
/// @brief Enqueue function call to the end of current frame in draw thread
|
||||
void postRunnable(runnable callback);
|
||||
|
||||
PacksManager createPacksManager(const fs::path& worldFolder);
|
||||
|
||||
SettingsHandler& getSettingsHandler();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue