summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/hotbar.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/gui/hotbar.hh')
-rw-r--r--src/game/client/gui/hotbar.hh17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/game/client/gui/hotbar.hh b/src/game/client/gui/hotbar.hh
index c529230..bba5e63 100644
--- a/src/game/client/gui/hotbar.hh
+++ b/src/game/client/gui/hotbar.hh
@@ -3,28 +3,25 @@
// 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
+namespace hotbar
{
extern unsigned int active_slot;
-extern std::array<const world::Item*, HOTBAR_SIZE> slots;
-} // namespace gui::hotbar
+extern std::array<const Item*, HOTBAR_SIZE> slots;
+} // namespace hotbar
-namespace gui::hotbar
+namespace hotbar
{
void init(void);
void shutdown(void);
void layout(void);
-} // namespace gui::hotbar
+} // namespace hotbar
-namespace gui::hotbar
+namespace hotbar
{
void next_slot(void);
void prev_slot(void);
-} // namespace gui::hotbar
+} // namespace hotbar