Can just use the enum as the type for the map but it'd be nicer if I could use a class enum without tons of template BS.

This commit is contained in:
Zed A. Shaw 2024-10-29 17:49:54 -04:00
parent 3f87d19911
commit da8011cb14
2 changed files with 12 additions and 12 deletions

View file

@ -98,7 +98,7 @@ namespace DinkyECS {
}
template<typename Comp>
void send(int event, Entity entity) {
void send(Comp event, Entity entity) {
EventQueue &queue = queue_map_for<Comp>();
queue.push({event, entity});
}