replace biomes.json with biomes.toml & make it combined object

This commit is contained in:
MihailRis
2024-10-13 21:50:39 +03:00
parent e7d7753d47
commit 7c56d8fd7f
12 changed files with 130 additions and 95 deletions
+7 -1
View File
@@ -16,6 +16,7 @@ struct EntityDef;
struct ContentPack;
struct GeneratorDef;
class ResPaths;
class ContentBuilder;
class ContentPackRuntime;
struct ContentPackStats;
@@ -26,6 +27,7 @@ class ContentLoader {
scriptenv env;
ContentBuilder& builder;
ContentPackStats* stats;
const ResPaths& paths;
void loadBlock(
Block& def, const std::string& full, const std::string& name
@@ -55,7 +57,11 @@ class ContentLoader {
void loadContent(const dv::value& map);
public:
ContentLoader(ContentPack* pack, ContentBuilder& builder);
ContentLoader(
ContentPack* pack,
ContentBuilder& builder,
const ResPaths& paths
);
// Refresh pack content.json
static bool fixPackIndices(