More GUECS cleanup before releasing. Still need to sort out events and reduce the amount of stuff that GUECS needs.
This commit is contained in:
parent
1780a758b3
commit
abea6da2e0
10 changed files with 71 additions and 54 deletions
18
guecstra.cpp
Normal file
18
guecstra.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "guecstra.hpp"
|
||||
|
||||
namespace guecs {
|
||||
|
||||
Clickable make_action(DinkyECS::World& target, Events::GUI event) {
|
||||
return {[&, event](auto ent, auto data){
|
||||
// remember that ent is passed in from the UI::mouse handler
|
||||
target.send<Events::GUI>(event, ent, data);
|
||||
}};
|
||||
}
|
||||
|
||||
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