move Lighting instance to ChunksController
This commit is contained in:
@@ -44,6 +44,9 @@ Player::Player(
|
||||
position(position),
|
||||
inventory(std::move(inv)),
|
||||
eid(eid),
|
||||
chunks(std::make_unique<Chunks>(
|
||||
3, 3, 0, 0, level->events.get(), level->content->getIndices()
|
||||
)),
|
||||
fpCamera(level->getCamera("core:first-person")),
|
||||
spCamera(level->getCamera("core:third-person-front")),
|
||||
tpCamera(level->getCamera("core:third-person-back")),
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "settings.hpp"
|
||||
#include "voxels/voxel.hpp"
|
||||
|
||||
class Chunks;
|
||||
class Camera;
|
||||
class Inventory;
|
||||
class ContentReport;
|
||||
@@ -55,6 +56,7 @@ class Player : public Serializable {
|
||||
entityid_t eid;
|
||||
entityid_t selectedEid = 0;
|
||||
public:
|
||||
std::unique_ptr<Chunks> chunks; // not in use yet
|
||||
std::shared_ptr<Camera> fpCamera, spCamera, tpCamera;
|
||||
std::shared_ptr<Camera> currentCamera;
|
||||
bool debug = false;
|
||||
|
||||
Reference in New Issue
Block a user