move Chunks from Level to Player

This commit is contained in:
MihailRis
2024-12-17 19:40:00 +03:00
parent b7664b4188
commit 1c18c02092
40 changed files with 450 additions and 220 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ class Hud : public util::ObjectsKeeper {
std::unique_ptr<Camera> uicamera;
gui::GUI* gui;
LevelFrontend& frontend;
Player* player;
Player& player;
/// @brief Is any overlay/inventory open
bool inventoryOpen = false;
@@ -131,7 +131,7 @@ class Hud : public util::ObjectsKeeper {
void showExchangeSlot();
void updateWorldGenDebugVisualization();
public:
Hud(Engine* engine, LevelFrontend& frontend, Player* player);
Hud(Engine* engine, LevelFrontend& frontend, Player& player);
~Hud();
void update(bool hudVisible);