Brought over a bunch of stuff to get started, but only lel.cpp compiles.

This commit is contained in:
Zed A. Shaw 2025-05-05 11:42:21 -04:00
parent 26685279ce
commit 103793204d
33 changed files with 2746 additions and 0 deletions

18
guecstra.cpp Normal file
View 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);
}};
}
}