diff options
author | rtk0c <[email protected]> | 2021-06-11 22:19:23 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-06-11 22:19:23 -0700 |
commit | bdee9dd0c92865e0cec2f4bbf170959df282a930 (patch) | |
tree | af9d40cb4378ee2166574faed9cc16e283110f31 /core/src/Model/Project.hpp | |
parent | 8f7daa9bd100345d7e23639604c9a3a50ce6448b (diff) |
More UI polishing and fix asset saving/reloading
Diffstat (limited to 'core/src/Model/Project.hpp')
-rw-r--r-- | core/src/Model/Project.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/Model/Project.hpp b/core/src/Model/Project.hpp index 8cf3483..17d9acb 100644 --- a/core/src/Model/Project.hpp +++ b/core/src/Model/Project.hpp @@ -14,24 +14,24 @@ class Project { -public: - WorkflowAssetList Workflows; - TemplateAssetList Templates; - ItemList<ProductItem> Products; - ItemList<FactoryItem> Factories; - ItemList<CustomerItem> Customers; - private: std::filesystem::path mRootPath; std::string mRootPathString; std::string mName; + // (Exception to style guidelines) // This is put after the private fields, so that when XxxDatabase's constructor runs, all of them will be initialized public: + WorkflowAssetList Workflows; + TemplateAssetList Templates; + ItemList<ProductItem> Products; + ItemList<FactoryItem> Factories; + ItemList<CustomerItem> Customers; MainDatabase Database; public: /// Load the project from a directory containing the cplt_project.json file. + /// This only loads the main project file, the caller needs to Project(std::filesystem::path rootPath); /// Create a project with the given name in the given path. Note that the path should be a directory that will contain the project files once created. |