This commit is contained in:
JMS55 2023-12-27 12:04:53 -08:00
parent 85709a3a92
commit 3d222ec2aa
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ where
}
}
// TODO: Don't think this actually works. EcsSubscriptions needs to handle this.
pub fn use_event_reader<'a, E: Event>(cx: &'a ScopeState) -> EventIterator<'a, E> {
let event_reader = cx.use_hook(|| ManualEventReader::default());
let events = EcsContext::get_world(cx).resource::<Events<E>>();