Simple quick way to do different attacks that play different shaders.
This commit is contained in:
parent
58981fd8ed
commit
bf8a2dc0c5
10 changed files with 25 additions and 18 deletions
|
@ -307,4 +307,11 @@ namespace guecs {
|
|||
}};
|
||||
}
|
||||
|
||||
Clickable make_action(DinkyECS::World& target, Events::GUI event, std::any data) {
|
||||
return {[&, event, data](auto ent, auto){
|
||||
// remember that ent is passed in from the UI::mouse handler
|
||||
target.send<Events::GUI>(event, ent, data);
|
||||
}};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue