X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgenerator.cpp;h=43d932cceae421473bc391820370c36dccc1fac7;hb=e52e3c500b679ab7bae9cfdda3fb0d630a2584ad;hp=c1a7a0801198de34e3a4b8b3d0bdddd70f334ba4;hpb=774253e509ce13881229efda8849bf6f3c47b665;p=blank.git diff --git a/src/generator.cpp b/src/generator.cpp index c1a7a08..43d932c 100644 --- a/src/generator.cpp +++ b/src/generator.cpp @@ -5,11 +5,11 @@ namespace blank { -Generator::Generator(unsigned int seed) -: solidNoise(seed) -, typeNoise(seed + 1) -, stretch(64.0f) -, solid_threshold(0.8f) +Generator::Generator(const Config &config) +: solidNoise(config.solid_seed) +, typeNoise(config.type_seed) +, stretch(config.stretch) +, solid_threshold(config.solid_threshold) , space(0) , light(0) , solids() {