mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
23 lines
569 B
C++
23 lines
569 B
C++
#include "Level.h"
|
|
#include "../lighting/Lighting.h"
|
|
#include "../voxels/ChunksController.h"
|
|
#include "../player_control.h"
|
|
|
|
Level::Level(World* world, Player* player, Chunks* chunks, PhysicsSolver* physics) :
|
|
world(world),
|
|
player(player),
|
|
chunks(chunks),
|
|
physics(physics) {
|
|
lighting = new Lighting(chunks);
|
|
chunksController = new ChunksController(world, chunks, lighting);
|
|
playerController = new PlayerController(this);
|
|
}
|
|
|
|
Level::~Level(){
|
|
delete chunks;
|
|
delete physics;
|
|
delete player;
|
|
delete lighting;
|
|
delete chunksController;
|
|
delete playerController;
|
|
}
|