Inventory system basically works now but is in a alpha hack stage. Time to refactor.

This commit is contained in:
Zed A. Shaw 2025-02-23 22:57:27 -05:00
parent b7f49aa719
commit e0e7a1027c
11 changed files with 92 additions and 33 deletions

View file

@ -11,14 +11,15 @@ namespace gui {
guecs::UI $gui;
DinkyECS::Entity $log_to;
std::array<std::string, 9> $slots = {
"slot1", "slot2", "slot3"
"slot4", "slot5", "slot6"
"slot1", "slot2", "slot3",
"slot4", "slot5", "slot6",
"slot7", "slot8", "slot9"
};
std::deque<std::string> $messages;
GameLevel $level;
StatusUI(GameLevel level);
void select_slot(DinkyECS::Entity ent, std::any data);
void update_level(GameLevel &level) { $level = level; }
void log(std::string msg);
void render();