mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
Content packs structure update
This commit is contained in:
parent
04f06a4717
commit
924957ddee
10 changed files with 131 additions and 86 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue