New world format, fixes

This commit is contained in:
MihailRis 2023-11-05 15:32:46 +03:00 • committed by GitHub
parent 0c65b13f4e
commit 0cf8382e95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 350 additions and 173 deletions

View file

@ -4,6 +4,7 @@
class World;
class Player;
class Chunks;
class LevelEvents;
class Lighting;
class PhysicsSolver;
class ChunksController;
@ -20,7 +21,8 @@ public:
Lighting* lighting;
ChunksController* chunksController;
PlayerController* playerController;
Level(World* world, Player* player, Chunks* chunks, ChunksStorage* chunksStorage, PhysicsSolver* physics);
LevelEvents* events;
Level(World* world, Player* player, Chunks* chunks, ChunksStorage* chunksStorage, PhysicsSolver* physics, LevelEvents* events);
~Level();
void update(float delta, bool interactions);