Refactor and fixes

This commit is contained in:
MihailRis
2023-11-12 02:44:02 +03:00
parent b4a3608302
commit 63b5f4bc6b
25 changed files with 394 additions and 278 deletions
+9 -3
View File
@@ -2,6 +2,7 @@
#define WORLD_LEVEL_H_
#include "../typedefs.h"
#include "../settings.h"
class World;
class Player;
@@ -24,15 +25,20 @@ public:
ChunksController* chunksController;
PlayerController* playerController;
LevelEvents* events;
Level(World* world,
Player* player,
ChunksStorage* chunksStorage,
LevelEvents* events,
uint loadDistance,
uint chunksPadding);
EngineSettings& settings);
~Level();
void update(float delta, bool updatePlayer, bool interactions);
void updatePlayer(float delta,
bool input,
bool pause,
bool interactions);
void update();
};
#endif /* WORLD_LEVEL_H_ */