refactor: build decoupled input processing & add event queue system

This commit is contained in:
2025-08-13 20:45:56 -05:00
parent abdefe0af0
commit d80d7061e7
11 changed files with 157 additions and 82 deletions

12
src/game/events.rs Normal file
View File

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