mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-07 16:07:54 -06:00
feat: implement generic optimized collision system
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
use bevy_ecs::event::Event;
|
||||
use bevy_ecs::prelude::*;
|
||||
|
||||
use crate::systems::input::GameCommand;
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum GameCommand {
|
||||
Exit,
|
||||
MovePlayer(crate::entity::direction::Direction),
|
||||
ToggleDebug,
|
||||
MuteAudio,
|
||||
ResetLevel,
|
||||
TogglePause,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Event)]
|
||||
#[derive(Event, Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum GameEvent {
|
||||
Command(GameCommand),
|
||||
Collision(Entity, Entity),
|
||||
}
|
||||
|
||||
impl From<GameCommand> for GameEvent {
|
||||
|
||||
Reference in New Issue
Block a user