mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
replace biomes.json with biomes.toml & make it combined object
This commit is contained in:
parent
e7d7753d47
commit
7c56d8fd7f
12 changed files with 130 additions and 95 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue