airmash_protocol/types/
mod.rs1mod units;
2
3mod server_key_state;
4mod upgrades;
5
6pub use self::units::*;
7pub(crate) type Vector2 = mint::Vector2<f32>;
8
9pub use self::server_key_state::ServerKeyState;
10pub use self::upgrades::Upgrades;
11
12pub type Player = u16;
13pub type Mob = u16;
14pub type Team = u16;
15pub type Flag = u16;
16pub type Level = u8;
17pub type Score = u32;
18
19pub(crate) trait VectorExt {
20 fn new(x: f32, y: f32) -> Self;
21}
22
23impl VectorExt for Vector2 {
24 fn new(x: f32, y: f32) -> Self {
25 Self { x, y }
26 }
27}