namespace blank {
-World::World()
+World::World(unsigned int seed)
: blockType()
, blockShape({{ -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f }})
, stairShape({{ -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f }}, { 0.0f, 0.0f })
, slabShape({{ -0.5f, -0.5f, -0.5f }, { 0.5f, 0.0f, 0.5f }})
-, generate(0)
+, generate(seed)
, chunks(blockType, generate)
, player() {
BlockType::Faces block_fill = { true, true, true, true, true, true };
player = &AddEntity();
player->Position({ 4.0f, 4.0f, 4.0f });
- chunks.Generate({ -4, -4, -4 }, { 5, 5, 5});
+ chunks.GenerateSurrounding(player->ChunkCoords());
}