mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor
This commit is contained in:
parent
da10151d5a
commit
02554e469a
6 changed files with 67 additions and 35 deletions
|
|
@ -58,9 +58,9 @@ using OnWorldOpen = std::function<void(std::unique_ptr<Level>, int64_t)>;
|
|||
class Engine : public util::ObjectsKeeper {
|
||||
CoreParameters params;
|
||||
EngineSettings settings;
|
||||
SettingsHandler settingsHandler;
|
||||
EnginePaths paths;
|
||||
|
||||
std::unique_ptr<SettingsHandler> settingsHandler;
|
||||
std::unique_ptr<Assets> assets;
|
||||
std::shared_ptr<Screen> screen;
|
||||
std::vector<ContentPack> contentPacks;
|
||||
|
|
@ -82,9 +82,15 @@ class Engine : public util::ObjectsKeeper {
|
|||
void updateHotkeys();
|
||||
void loadAssets();
|
||||
public:
|
||||
Engine(CoreParameters coreParameters);
|
||||
Engine();
|
||||
~Engine();
|
||||
|
||||
static Engine& getInstance();
|
||||
|
||||
void initialize(CoreParameters coreParameters);
|
||||
|
||||
static void terminate();
|
||||
|
||||
/// @brief Start the engine
|
||||
void run();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue