Mostly refactored out the common things for drag/drop so now just to refine how it's used and bring back moving the sprite around.

This commit is contained in:
Zed A. Shaw 2025-06-10 00:52:38 -04:00
parent 570b70ab0c
commit be7b86a913
6 changed files with 17 additions and 13 deletions

View file

@ -9,7 +9,8 @@ namespace guecs {
Clickable make_action(DinkyECS::World& target, Events::GUI event, std::any data);
struct GrabSource {
DinkyECS::Entity world_entity = 0;
DinkyECS::Entity world_entity;
std::function<void()> commit;
DinkyECS::Entity grab();
void move(sf::Vector2i position);