voxels renderer rebuilt, WorldFiles fix

This commit is contained in:
MihailRis 2023-11-02 13:23:52 +03:00 • committed by GitHub
parent 0576316282
commit 754c5b80d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 1141 additions and 524 deletions

View file

@ -3,18 +3,20 @@
#include "../lighting/Lighting.h"
#include "../voxels/Chunks.h"
#include "../voxels/ChunksController.h"
#include "../voxels/ChunksStorage.h"
#include "../player_control.h"
#include "../physics/Hitbox.h"
#include "../physics/PhysicsSolver.h"
#include "../objects/Player.h"
Level::Level(World* world, Player* player, Chunks* chunks, PhysicsSolver* physics) :
Level::Level(World* world, Player* player, Chunks* chunks, ChunksStorage* chunksStorage, PhysicsSolver* physics) :
world(world),
player(player),
chunks(chunks),
chunksStorage(chunksStorage),
physics(physics) {
lighting = new Lighting(chunks);
chunksController = new ChunksController(world, chunks, lighting);
chunksController = new ChunksController(this, chunks, lighting);
playerController = new PlayerController(this);
}
@ -24,6 +26,7 @@ Level::~Level(){
delete player;
delete lighting;
delete chunksController;
delete chunksStorage;
delete playerController;
}