Now systems.cpp is disconnected from levelmanager. That leaves the GUIs and then to completely remove it and clean up the api.
This commit is contained in:
parent
81e25f73bb
commit
d5ff57e025
9 changed files with 106 additions and 89 deletions
|
@ -127,7 +127,7 @@ namespace gui {
|
|||
}
|
||||
|
||||
void StatusUI::drop_item(DinkyECS::Entity item_id) {
|
||||
System::drop_item($level, item_id);
|
||||
System::drop_item(item_id);
|
||||
update();
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ namespace gui {
|
|||
if(gui_a != gui_b) {
|
||||
auto& a_name = $gui.name_for(gui_a);
|
||||
auto& b_name = $gui.name_for(gui_b);
|
||||
System::inventory_swap($level, $level.player, a_name, b_name);
|
||||
System::inventory_swap($level.player, a_name, b_name);
|
||||
}
|
||||
|
||||
update();
|
||||
|
@ -150,6 +150,6 @@ namespace gui {
|
|||
|
||||
bool StatusUI::occupied(guecs::Entity slot) {
|
||||
auto player = $level.world->get_the<components::Player>();
|
||||
return System::inventory_occupied($level, player.entity, $gui.name_for(slot));
|
||||
return System::inventory_occupied(player.entity, $gui.name_for(slot));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue