Move now works better, and the API is a lot cleaner. Now just need to make it not crash.
This commit is contained in:
parent
be7b86a913
commit
e01e697535
5 changed files with 26 additions and 15 deletions
|
@ -11,9 +11,11 @@ namespace guecs {
|
|||
struct GrabSource {
|
||||
DinkyECS::Entity world_entity;
|
||||
std::function<void()> commit;
|
||||
std::shared_ptr<sf::Sprite> sprite = nullptr;
|
||||
|
||||
DinkyECS::Entity grab();
|
||||
void move(sf::Vector2i position);
|
||||
void setSprite(guecs::UI& gui, DinkyECS::Entity gui_id);
|
||||
void move(sf::Vector2i pos);
|
||||
};
|
||||
|
||||
struct DropTarget {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue