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