Now the loot UI can work with any container and only uses an ECS id to work, not have its own contents.
This commit is contained in:
parent
a0eff927b6
commit
812407c3df
6 changed files with 70 additions and 34 deletions
|
@ -14,10 +14,14 @@ namespace gui {
|
|||
guecs::UI $gui;
|
||||
GameLevel $level;
|
||||
std::unordered_map<guecs::Entity, std::string> $slot_to_name;
|
||||
// NOTE: this should then become just an ECS id for a container
|
||||
inventory::Model contents;
|
||||
DinkyECS::Entity $target;
|
||||
|
||||
LootUI(GameLevel level);
|
||||
|
||||
void set_target(DinkyECS::Entity entity) {
|
||||
$target = entity;
|
||||
}
|
||||
|
||||
void init();
|
||||
void update();
|
||||
void render(sf::RenderWindow& window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue