refactor: Engine, EnginePaths, move CoreParameters to new header

This commit is contained in:
MihailRis
2025-11-09 19:56:46 +03:00
parent 01bf474a2b
commit 3b583d4dd6
5 changed files with 71 additions and 85 deletions
+5 -12
View File
@@ -1,15 +1,15 @@
#pragma once
#include "io.hpp"
#include "data/dv.hpp"
#include "engine/CoreParameters.hpp"
#include <unordered_map>
#include <stdexcept>
#include <optional>
#include <string>
#include <vector>
#include <tuple>
#include "io.hpp"
#include "data/dv.hpp"
struct PathsRoot {
std::string name;
io::path path;
@@ -46,18 +46,11 @@ class EnginePaths {
public:
ResPaths resPaths;
void prepare();
void prepare(CoreParameters& params);
void setUserFilesFolder(std::filesystem::path folder);
const std::filesystem::path& getUserFilesFolder() const;
void setResourcesFolder(std::filesystem::path folder);
const std::filesystem::path& getResourcesFolder() const;
void setScriptFolder(std::filesystem::path folder);
void setProjectFolder(std::filesystem::path folder);
io::path getWorldFolderByName(const std::string& name);
io::path getWorldsFolder() const;