mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Add files via upload
This commit is contained in:
parent
549b392871
commit
a5087cf221
11 changed files with 410 additions and 254 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include "../voxels/Chunks.h"
|
||||
#include "../voxels/ChunksStorage.h"
|
||||
#include "../voxels/WorldGenerator.h"
|
||||
#include "../world/WorldGenerators.h"
|
||||
#include "../graphics/Mesh.h"
|
||||
#include "../lighting/Lighting.h"
|
||||
#include "../files/WorldFiles.h"
|
||||
|
|
@ -26,7 +27,7 @@ ChunksController::ChunksController(Level* level, uint padding)
|
|||
chunks(level->chunks),
|
||||
lighting(level->lighting),
|
||||
padding(padding),
|
||||
generator(new WorldGenerator(level->content)) {
|
||||
generator(WorldGenerators::createWorldGenerator(level->getWorld()->getGenerator(), level->content)) {
|
||||
}
|
||||
|
||||
ChunksController::~ChunksController(){
|
||||
|
|
@ -130,4 +131,4 @@ void ChunksController::createChunk(int x, int z) {
|
|||
}
|
||||
chunk->setLoaded(true);
|
||||
chunk->setReady(true);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue