Can now round-trip a torch from loot to inventory and back.
This commit is contained in:
parent
4b0d76bbcc
commit
2a6b892e7f
5 changed files with 80 additions and 22 deletions
|
@ -13,6 +13,7 @@ namespace gui {
|
|||
guecs::UI $gui;
|
||||
GameLevel $level;
|
||||
std::unordered_map<DinkyECS::Entity, DinkyECS::Entity> contents;
|
||||
DinkyECS::Entity $selected_entity;
|
||||
|
||||
LootUI(GameLevel level);
|
||||
|
||||
|
@ -30,7 +31,8 @@ namespace gui {
|
|||
|
||||
|
||||
guecs::DropTarget& get_drop_target(DinkyECS::Entity gui_id);
|
||||
void begin_drop(DinkyECS::Entity entity);
|
||||
void commit_drop(DinkyECS::Entity entity);
|
||||
void begin_drop(DinkyECS::Entity world_entity);
|
||||
bool commit_drop(DinkyECS::Entity gui_id);
|
||||
bool place_slot(DinkyECS::Entity id);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue