pub trait RealtimeComponent { type Event; // Required method fn tick(&mut self) -> (Self::Event, Duration); }
A component of an entity which can produce realtime events
Events that will be periodically emited by this component
Generate an event, along with the time until the next tick should take place