Add TODO
This commit is contained in:
parent
85709a3a92
commit
3d222ec2aa
|
|
@ -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> {
|
pub fn use_event_reader<'a, E: Event>(cx: &'a ScopeState) -> EventIterator<'a, E> {
|
||||||
let event_reader = cx.use_hook(|| ManualEventReader::default());
|
let event_reader = cx.use_hook(|| ManualEventReader::default());
|
||||||
let events = EcsContext::get_world(cx).resource::<Events<E>>();
|
let events = EcsContext::get_world(cx).resource::<Events<E>>();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue