Simple quick way to do different attacks that play different shaders.

This commit is contained in:
Zed A. Shaw 2025-04-23 12:32:28 -04:00
parent 58981fd8ed
commit bf8a2dc0c5
10 changed files with 25 additions and 18 deletions

View file

@ -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);
}};
}
}