amethyst 0.9.0

Data-oriented game engine written in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use core::{
    shrev::{EventChannel, ReaderId},
    specs::{Read, Resources, SystemData},
    EventReader,
};
use renderer::Event;
use ui::UiEvent;

/// The enum holding the different types of event that can be received in a `State` in the handle_event method.
#[derive(Clone, EventReader)]
#[reader(StateEventReader)]
pub enum StateEvent {
    /// Events sent by the winit window.
    Window(Event),
    /// Events sent by the ui system.
    Ui(UiEvent),
}