Standardized on using only DinkyECS:Entity for most inventory:::Model operations, then create swap based on the same entities.

This commit is contained in:
Zed A. Shaw 2025-07-02 14:25:44 -04:00
parent 8c8d6dc9e7
commit 784f753e72
6 changed files with 62 additions and 53 deletions

View file

@ -129,7 +129,8 @@ namespace gui {
dbc::log(fmt::format("removing slot: {}", slot_id));
auto& slot_name = $slot_to_name.at(slot_id);
auto& inventory = $level.world->get_the<inventory::Model>();
inventory.remove(slot_name);
auto world_entity = inventory.get(slot_name);
inventory.remove(world_entity);
$gui.remove<guecs::GrabSource>(slot_id);
$gui.remove<guecs::Sprite>(slot_id);