add 'script' entry point

This commit is contained in:
MihailRis
2024-12-21 02:34:54 +03:00
parent 1aca4957a4
commit dc93cac1b9
3 changed files with 14 additions and 1 deletions
+4
View File
@@ -2,6 +2,7 @@
#include <filesystem>
#include <stdexcept>
#include <optional>
#include <string>
#include <vector>
#include <tuple>
@@ -26,6 +27,8 @@ public:
void setResourcesFolder(std::filesystem::path folder);
std::filesystem::path getResourcesFolder() const;
void setScriptFolder(std::filesystem::path folder);
std::filesystem::path getWorldFolderByName(const std::string& name);
std::filesystem::path getWorldsFolder() const;
std::filesystem::path getConfigFolder() const;
@@ -51,6 +54,7 @@ private:
std::filesystem::path userFilesFolder {"."};
std::filesystem::path resourcesFolder {"res"};
std::filesystem::path currentWorldFolder;
std::optional<std::filesystem::path> scriptFolder;
std::vector<ContentPack>* contentPacks = nullptr;
};