Clean up more of the FSM so that it's almost nothing.Now I'll try to make a stand-alone 'dnd' state machine to handle drag and drop functionality.
This commit is contained in:
parent
06a843f169
commit
1ab708c4eb
3 changed files with 43 additions and 50 deletions
|
@ -3,8 +3,8 @@
|
|||
#include <optional>
|
||||
|
||||
namespace UISystem {
|
||||
std::optional<guecs::Entity> loot_grab(guecs::UI& gui, guecs::Entity gui_id);
|
||||
std::optional<guecs::Entity> loot_grab(guecs::UI& gui, std::any data);
|
||||
|
||||
|
||||
bool loot_drop(guecs::UI& source, guecs::UI& target, guecs::Entity grab_source, guecs::Entity target_id);
|
||||
bool loot_drop(guecs::UI& source, guecs::UI& target,
|
||||
std::optional<guecs::Entity> source_id, std::any data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue