refactor: reorganize systems properly, move events to events.rs

This commit is contained in:
2025-08-15 09:48:16 -05:00
parent 2c65048fb0
commit b9bae99a4c
8 changed files with 27 additions and 30 deletions

14
src/events.rs Normal file
View File

@@ -0,0 +1,14 @@
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)
}
}