add GeneratorScript

This commit is contained in:
MihailRis
2024-08-14 17:12:12 +03:00
parent 6f5eb6be48
commit 95cf451cc8
12 changed files with 196 additions and 51 deletions
+4
View File
@@ -13,6 +13,7 @@ struct BlockMaterial;
struct ItemDef;
struct EntityDef;
struct ContentPack;
struct GeneratorDef;
class ContentBuilder;
class ContentPackRuntime;
@@ -39,6 +40,9 @@ class ContentLoader {
void loadEntity(
EntityDef& def, const std::string& full, const std::string& name
);
void loadGenerator(
GeneratorDef& def, const std::string& full, const std::string& name
);
static void loadCustomBlockModel(Block& def, dynamic::Map* primitives);
static void loadBlockMaterial(BlockMaterial& def, const fs::path& file);