Content packs structure update

This commit is contained in:
MihailRis
2023-12-16 12:47:20 +03:00
parent 04f06a4717
commit 924957ddee
10 changed files with 131 additions and 86 deletions
+13 -1
View File
@@ -2,11 +2,23 @@
#define CONTENT_CONTENT_PACK_H_
#include <string>
#include <vector>
#include <filesystem>
struct ContentPack {
std::string id;
std::string id = "none";
std::string title = "untitled";
std::string version = "0.0";
std::filesystem::path folder;
std::filesystem::path getContentFile() const;
static const std::string PACKAGE_FILENAME;
static const std::string CONTENT_FILENAME;
static bool is_pack(std::filesystem::path folder);
static ContentPack read(std::filesystem::path folder);
static void scan(std::filesystem::path folder,
std::vector<ContentPack>& packs);
};
#endif // CONTENT_CONTENT_PACK_H_