There's a UISystem now for to compliment the entities and components in GUECS. I now use that to do the drag/drop transfers instead of raw code right in the FSM.

This commit is contained in:
Zed A. Shaw 2025-06-10 13:13:40 -04:00
parent e01e697535
commit 4a48910273
11 changed files with 62 additions and 60 deletions

View file

@ -14,11 +14,11 @@ namespace guecs {
std::shared_ptr<sf::Sprite> sprite = nullptr;
DinkyECS::Entity grab();
void setSprite(guecs::UI& gui, DinkyECS::Entity gui_id);
void setSprite(guecs::UI& gui, guecs::Entity gui_id);
void move(sf::Vector2i pos);
};
struct DropTarget {
std::function<bool(DinkyECS::Entity entity)> commit;
std::function<bool(DinkyECS::Entity world_entity)> commit;
};
}