New debug_ui that shows perf data, other debug info, and allows spawning enemies.

This commit is contained in:
Zed A. Shaw 2025-04-05 12:09:19 -04:00
parent 4f090159ab
commit 07ce8a4148
12 changed files with 50 additions and 87 deletions

View file

@ -142,8 +142,13 @@ namespace guecs {
$world.set<Comp>(ent, val);
}
lel::Cell& cell_for(DinkyECS::Entity entity) {
return $world.get<lel::Cell>(entity);
lel::Cell& cell_for(DinkyECS::Entity ent) {
return $world.get<lel::Cell>(ent);
}
lel::Cell& cell_for(std::string name) {
DinkyECS::Entity ent = entity(name);
return $world.get<lel::Cell>(ent);
}
template <typename Comp>