Now overlay UI can show some text pretty easily and is showing the debug stats.

This commit is contained in:
Zed A. Shaw 2025-02-20 10:53:01 -05:00
parent d8e1fc7aa3
commit 30a7e1b2cc
5 changed files with 51 additions and 21 deletions

View file

@ -158,10 +158,15 @@ namespace guecs {
return $world.get<lel::Cell>(entity);
}
template <typename Comp>
void remove(DinkyECS::Entity ent) {
$world.remove<Comp>(ent);
}
template <typename Comp>
Comp& get(DinkyECS::Entity entity) {
return $world.get<Comp>(entity);
}
template <typename Comp>
void remove(DinkyECS::Entity ent) {
$world.remove<Comp>(ent);
}
};
Clickable make_action(DinkyECS::World& target, Events::GUI event);