1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use specs::DenseVecStorage; impl_try_from_enum! { /// Used to indicate the type of plane /// that the packet refers to. /// /// Used in: /// - TODO #[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)] #[cfg_attr(feature = "specs", derive(Component))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum PlaneType { Predator = 1, Goliath = 2, Mohawk = 3, Tornado = 4, Prowler = 5, } }