[−][src]Trait amethyst_core::EventReader
Read events generically
Associated Types
type SystemData: SystemData<'a>
SystemData needed to read the event(s)
type Event: Clone + Send + Sync + 'static
The event type produced by the reader
Required methods
fn read(&mut self, _: Self::SystemData, _: &mut Vec<Self::Event>)
Read events from the linked SystemData
and append to the given Vec
Provided methods
fn read_from_world(&mut self, world: &'a World, events: &mut Vec<Self::Event>)
Read events from World
and append to the given Vec
fn setup(&mut self, res: &mut World)
Setup event reader