chore: remove PlayerLifecycle, move MovementModifiers directly into PlayerBundle

This commit is contained in:
Ryan Walters
2025-08-28 18:32:19 -05:00
parent 2bdd4f0d04
commit 2da8a312f3
4 changed files with 11 additions and 49 deletions

View File

@@ -5,7 +5,7 @@ use crate::{
map::graph::TraversalFlags,
systems::{
movement::{BufferedDirection, Position, Velocity},
Collider, GhostCollider, ItemCollider, PacmanCollider, PlayerLifecycle,
Collider, GhostCollider, ItemCollider, PacmanCollider,
},
texture::{animated::AnimatedTexture, sprite::AtlasTile},
};
@@ -160,14 +160,8 @@ pub struct PlayerBundle {
pub directional_animated: DirectionalAnimated,
pub entity_type: EntityType,
pub collider: Collider,
pub pacman_collider: PacmanCollider,
}
/// Convenience bundle for attaching the hybrid FSM to the player entity
#[derive(Bundle, Default)]
pub struct PlayerStateBundle {
pub lifecycle: PlayerLifecycle,
pub movement_modifiers: MovementModifiers,
pub pacman_collider: PacmanCollider,
}
#[derive(Bundle)]