diff options
| author | untodesu <kirill@untode.su> | 2025-03-15 16:22:09 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-15 16:22:09 +0500 |
| commit | 3bf42c6ff3805a0d42bbc661794a95ff31bedc26 (patch) | |
| tree | 05049955847504808d6bed2bb7b155f8b03807bb /game/client/hotbar.hh | |
| parent | 02294547dcde0d4ad76e229106702261e9f10a51 (diff) | |
| download | voxelius-3bf42c6ff3805a0d42bbc661794a95ff31bedc26.tar.bz2 voxelius-3bf42c6ff3805a0d42bbc661794a95ff31bedc26.zip | |
Add whatever I was working on for the last month
Diffstat (limited to 'game/client/hotbar.hh')
| -rw-r--r-- | game/client/hotbar.hh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/game/client/hotbar.hh b/game/client/hotbar.hh new file mode 100644 index 0000000..318c631 --- /dev/null +++ b/game/client/hotbar.hh @@ -0,0 +1,31 @@ +#ifndef CLIENT_HOTBAR_HH +#define CLIENT_HOTBAR_HH 1 +#pragma once + +#include "shared/types.hh" + +// TODO: design an inventory system and an item +// registry and integrate the hotbar into that system + +constexpr static unsigned int HOTBAR_SIZE = 9U; + +namespace hotbar +{ +extern unsigned int active_slot; +extern item_id slots[HOTBAR_SIZE]; +} // namespace hotbar + +namespace hotbar +{ +void init(void); +void deinit(void); +void layout(void); +} // namespace hotbar + +namespace hotbar +{ +void next_slot(void); +void prev_slot(void); +} // namespace hotbar + +#endif /* CLIENT_HOTBAR_HH */ |
