From 73cbcdd6e8c849e32abbf9757e603e6a6654e870 Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 12 Sep 2025 14:09:34 +0500 Subject: Metaitems --- game/client/gui/hotbar.hh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'game/client/gui/hotbar.hh') diff --git a/game/client/gui/hotbar.hh b/game/client/gui/hotbar.hh index 88ce791..223dbc9 100644 --- a/game/client/gui/hotbar.hh +++ b/game/client/gui/hotbar.hh @@ -1,16 +1,19 @@ #pragma once -#include "shared/types.hh" - // TODO: design an inventory system and an item // registry and integrate the hotbar into that system +namespace world +{ +class Item; +} // namespace world + constexpr static unsigned int HOTBAR_SIZE = 9U; namespace gui::hotbar { extern unsigned int active_slot; -extern item_id slots[HOTBAR_SIZE]; +extern std::array slots; } // namespace gui::hotbar namespace gui::hotbar -- cgit