mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-11 10:08:00 -06:00
refactor: reorganize systems properly, move events to events.rs
This commit is contained in:
14
src/events.rs
Normal file
14
src/events.rs
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user