1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
use specs::DenseVecStorage; impl_try_from_enum! { /// Types of all mobs present in the game. /// /// In AIRMASH, mobs are any non-player and non-wall /// items that can be interacted with. This includes /// powerups, upgrades, and all missiles. /// /// Used by: /// - TODO #[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)] #[cfg_attr(feature = "specs", derive(Component))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum MobType { PredatorMissile = 1, GoliathMissile = 2, MohawkMissile = 3, Upgrade = 4, TornadoSingleMissile = 5, TornadoTripleMissile = 6, ProwlerMissile = 7, Shield = 8, Inferno = 9, } }