mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
feat: projects & replace builtins.list with 'base_packs' project property
This commit is contained in:
parent
1bdb5c3145
commit
6164374666
10 changed files with 89 additions and 14 deletions
|
|
@ -20,6 +20,7 @@ class Screen;
|
|||
class ContentControl;
|
||||
class EngineController;
|
||||
class Input;
|
||||
struct Project;
|
||||
|
||||
namespace gui {
|
||||
class GUI;
|
||||
|
|
@ -48,6 +49,7 @@ struct CoreParameters {
|
|||
std::filesystem::path resFolder = "res";
|
||||
std::filesystem::path userFolder = ".";
|
||||
std::filesystem::path scriptFile;
|
||||
std::filesystem::path projectFolder;
|
||||
};
|
||||
|
||||
using OnWorldOpen = std::function<void(std::unique_ptr<Level>, int64_t)>;
|
||||
|
|
@ -57,6 +59,7 @@ class Engine : public util::ObjectsKeeper {
|
|||
EngineSettings settings;
|
||||
EnginePaths paths;
|
||||
|
||||
std::unique_ptr<Project> project;
|
||||
std::unique_ptr<SettingsHandler> settingsHandler;
|
||||
std::unique_ptr<Assets> assets;
|
||||
std::shared_ptr<Screen> screen;
|
||||
|
|
@ -78,6 +81,7 @@ class Engine : public util::ObjectsKeeper {
|
|||
void saveSettings();
|
||||
void updateHotkeys();
|
||||
void loadAssets();
|
||||
void loadProject();
|
||||
public:
|
||||
Engine();
|
||||
~Engine();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue