mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add config/defaults.toml
This commit is contained in:
parent
de00414456
commit
04e490c896
9 changed files with 21 additions and 16 deletions
|
|
@ -206,9 +206,6 @@ void WorldInfo::deserialize(const dv::value& root) {
|
|||
generator = root["generator"].asString(generator);
|
||||
seed = root["seed"].asInteger(seed);
|
||||
|
||||
if (generator.empty()) {
|
||||
generator = WorldGenerator::DEFAULT;
|
||||
}
|
||||
if (root.has("version")) {
|
||||
auto& verobj = root["version"];
|
||||
major = verobj["major"].asInteger();
|
||||
|
|
|
|||
|
|
@ -131,7 +131,4 @@ public:
|
|||
void generate(voxel* voxels, int x, int z);
|
||||
|
||||
WorldGenDebugInfo createDebugInfo() const;
|
||||
|
||||
/// @brief Default generator name // TODO: move to config
|
||||
inline static std::string DEFAULT = "core:default";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue