summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/hotbar.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 14:50:33 +0500
committeruntodesu <kirill@untode.su>2025-12-26 14:50:33 +0500
commit6c2abde5c99a236453b795abaa6d7d70105e31f7 (patch)
treef085049b9615a7d03cca5de40adb6529d6c13e11 /src/game/client/gui/hotbar.hh
parentf40d09cb8f712e87691af4912f3630d92d692779 (diff)
downloadvoxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.tar.bz2
voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.zip
Just a big Ctrl+H refactoring
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