use bevy::prelude::*; use lightyear::prelude::*; use serde::*; #[derive(Component, Message, Clone, Copy, Serialize, Deserialize, Debug, PartialEq)] pub struct Shape { pub radius: f32, } impl Shape { pub fn player() -> Self { Shape { radius: 10. } } pub fn tower() -> Self { Shape { radius: 25. } } pub fn minion() -> Self { Shape { radius: 5. } } pub fn nexus() -> Self { Shape { radius: 35. } } }