mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
refactor enums: CursorShape, InterpolationType, ParticleSpawnShape
This commit is contained in:
parent
7749675a61
commit
3be8546bf4
9 changed files with 44 additions and 91 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#define VC_ENABLE_REFLECTION
|
||||
#include "../ContentLoader.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
|
@ -210,13 +211,9 @@ void ContentLoader::loadGenerator(
|
|||
map.at("heights-bpd").get(def.heightsBPD);
|
||||
std::string interpName;
|
||||
map.at("heights-interpolation").get(interpName);
|
||||
if (auto interp = InterpolationType_from(interpName)) {
|
||||
def.heightsInterpolation = *interp;
|
||||
}
|
||||
InterpolationTypeMeta.getItem(interpName, def.heightsInterpolation);
|
||||
map.at("biomes-interpolation").get(interpName);
|
||||
if (auto interp = InterpolationType_from(interpName)) {
|
||||
def.biomesInterpolation = *interp;
|
||||
}
|
||||
InterpolationTypeMeta.getItem(interpName, def.biomesInterpolation);
|
||||
|
||||
map.at("sea-level").get(def.seaLevel);
|
||||
map.at("wide-structs-chunks-radius").get(def.wideStructsChunksRadius);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue