Files
Pac-Man/src/events.rs

15 lines
284 B
Rust

use bevy_ecs::event::Event;
use crate::systems::input::GameCommand;
#[derive(Debug, Clone, Copy, Event)]
pub enum GameEvent {
Command(GameCommand),
}
impl From<GameCommand> for GameEvent {
fn from(command: GameCommand) -> Self {
GameEvent::Command(command)
}
}