mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-17 04:12:39 -06:00
refactor: handle pausing within game, reduce input system allocations
This commit is contained in:
@@ -2,11 +2,11 @@ use crate::input::commands::GameCommand;
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum GameEvent {
|
||||
InputCommand(GameCommand),
|
||||
Command(GameCommand),
|
||||
}
|
||||
|
||||
impl From<GameCommand> for GameEvent {
|
||||
fn from(command: GameCommand) -> Self {
|
||||
GameEvent::InputCommand(command)
|
||||
GameEvent::Command(command)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user