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:
Zed A. Shaw 2025-06-21 10:51:45 -04:00
parent a0eff927b6
commit 812407c3df
6 changed files with 70 additions and 34 deletions

View file

@ -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);