Did a full code review to identify things to fix and either fixed them or noted BUG where I should come back.

This commit is contained in:
Zed A. Shaw 2024-12-04 21:43:59 -05:00
parent ae43dad499
commit 9abb39a3bf
14 changed files with 72 additions and 35 deletions

View file

@ -78,7 +78,6 @@ namespace DinkyECS {
template <typename Comp>
bool has(Entity ent) {
EntityMap &map = entity_map_for<Comp>();
// use .at for bounds checking
return map.contains(ent);
}
@ -116,7 +115,6 @@ namespace DinkyECS {
EventQueue &queue = queue_map_for<Comp>();
Event evt = queue.front();
queue.pop();
// I could use tie here to auto extract the any
return evt;
}