Files
Pac-Man/src/game/events.rs

13 lines
249 B
Rust

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