Can display items picked up but man is this some garbage code. I need to rethink how inventory is stored so that it'll work with the Menu.
This commit is contained in:
parent
135d9a128b
commit
aaa6d9f9f3
3 changed files with 42 additions and 43 deletions
|
@ -135,7 +135,7 @@ void System::collision(DinkyECS::World &world, Player &player) {
|
|||
|
||||
world.send<Events::GUI>(Events::GUI::COMBAT, entity, result);
|
||||
} else if(world.has<InventoryItem>(entity)) {
|
||||
auto& item = world.get<InventoryItem>(entity);
|
||||
auto item = world.get<InventoryItem>(entity);
|
||||
auto& item_pos = world.get<Position>(entity);
|
||||
auto& inventory = world.get<Inventory>(player.entity);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue