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
+3 -2
View File
@@ -5,12 +5,13 @@
#include <filesystem>
class Block;
class ContentPack;
class ContentBuilder;
class ContentLoader {
std::filesystem::path folder;
const ContentPack* pack;
public:
ContentLoader(std::filesystem::path folder);
ContentLoader(const ContentPack* pack);
Block* loadBlock(std::string name, std::filesystem::path file);
void load(ContentBuilder* builder);