aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/shape.rs
blob: 7423375c4dc549f5200cba796e25371a22853bce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::shared::*;

#[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. }
    }
}