Added class Level for runtime world stuff

This commit is contained in:
MihailRis
2022-06-29 17:12:58 +03:00
committed by GitHub
parent 4ceba017c7
commit e8ca11894d
9 changed files with 81 additions and 35 deletions
+19
View File
@@ -0,0 +1,19 @@
#include "Level.h"
#include "../lighting/Lighting.h"
#include "../voxels/ChunksController.h"
Level::Level(Player* player, Chunks* chunks, PhysicsSolver* physics) :
player(player),
chunks(chunks),
physics(physics) {
lighting = new Lighting(chunks);
chunksController = new ChunksController(chunks, lighting);
}
Level::~Level(){
delete chunks;
delete physics;
delete player;
delete lighting;
delete chunksController;
}