use crate::shared::*; pub const ATTACK_RANGE: f32 = 60.; #[derive(Bundle)] pub struct ProjectileBundle { pub projectile: Projectile, pub position: ProjectilePosition, pub replicate: Replicate, } #[derive(Component, Message, Serialize, Deserialize, Clone, Debug, PartialEq)] pub struct Projectile { pub target_player: PlayerId, pub source_player: PlayerId, } #[derive(Component, Message, Serialize, Deserialize, Clone, Debug, PartialEq)] pub struct ProjectilePosition(pub Vec2);