mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-10 06:07:55 -06:00
13 lines
249 B
Rust
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)
|
|
}
|
|
}
|