Inventory system basically works now but is in a alpha hack stage. Time to refactor.
This commit is contained in:
parent
b7f49aa719
commit
e0e7a1027c
11 changed files with 92 additions and 33 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue