feat: projects & replace builtins.list with 'base_packs' project property
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user