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:
parent
3f87d19911
commit
da8011cb14
2 changed files with 12 additions and 12 deletions
|
@ -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});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue