Now overlay UI can show some text pretty easily and is showing the debug stats.
This commit is contained in:
parent
d8e1fc7aa3
commit
30a7e1b2cc
5 changed files with 51 additions and 21 deletions
13
guecs.hpp
13
guecs.hpp
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue