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:
parent
e01e697535
commit
4a48910273
11 changed files with 62 additions and 60 deletions
|
@ -24,7 +24,7 @@ namespace guecs {
|
|||
return world_entity;
|
||||
}
|
||||
|
||||
void GrabSource::setSprite(guecs::UI& gui, DinkyECS::Entity gui_id) {
|
||||
void GrabSource::setSprite(guecs::UI& gui, guecs::Entity gui_id) {
|
||||
dbc::check(gui.has<guecs::Sprite>(gui_id), "GrabSource given sprite gui_id that doesn't exist");
|
||||
|
||||
auto& sp = gui.get<guecs::Sprite>(gui_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue