mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
move Chunks from Level to Player
This commit is contained in:
parent
b7664b4188
commit
1c18c02092
40 changed files with 450 additions and 220 deletions
|
|
@ -9,11 +9,9 @@
|
|||
|
||||
class Content;
|
||||
class World;
|
||||
class Chunks;
|
||||
class Entities;
|
||||
class Inventories;
|
||||
class LevelEvents;
|
||||
class Lighting;
|
||||
class PhysicsSolver;
|
||||
class GlobalChunks;
|
||||
class Camera;
|
||||
|
|
@ -27,7 +25,6 @@ class Level {
|
|||
public:
|
||||
const Content* const content;
|
||||
|
||||
std::unique_ptr<Chunks> chunks;
|
||||
std::unique_ptr<GlobalChunks> chunksStorage;
|
||||
std::unique_ptr<Inventories> inventories;
|
||||
|
||||
|
|
@ -44,8 +41,6 @@ public:
|
|||
);
|
||||
~Level();
|
||||
|
||||
void loadMatrix(int32_t x, int32_t z, uint32_t radius);
|
||||
|
||||
World* getWorld();
|
||||
|
||||
const World* getWorld() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue