Added generation seed support

This commit is contained in:
MihailRis 2022-07-01 02:31:30 +03:00 • committed by GitHub
parent 37dd882fdb
commit 1038a79b78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 17 deletions

View file

@ -2,12 +2,12 @@
#include "../lighting/Lighting.h"
#include "../voxels/ChunksController.h"
Level::Level(Player* player, Chunks* chunks, PhysicsSolver* physics) :
Level::Level(World* world, Player* player, Chunks* chunks, PhysicsSolver* physics) :
player(player),
chunks(chunks),
physics(physics) {
lighting = new Lighting(chunks);
chunksController = new ChunksController(chunks, lighting);
chunksController = new ChunksController(world, chunks, lighting);
}
Level::~Level(){