Enum airmash_protocol::MobType
source · [−]#[non_exhaustive]
pub enum MobType {
PredatorMissile,
GoliathMissile,
MohawkMissile,
Upgrade,
TornadoSingleMissile,
TornadoTripleMissile,
ProwlerMissile,
Shield,
Inferno,
Unknown(u8),
}
Expand description
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
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PredatorMissile
GoliathMissile
MohawkMissile
Upgrade
TornadoSingleMissile
TornadoTripleMissile
ProwlerMissile
Shield
Inferno
Unknown(u8)
Implementations
sourceimpl MobType
impl MobType
pub fn is_missile(&self) -> bool
pub fn is_powerup(&self) -> bool
Trait Implementations
sourceimpl<'de> DeserializeV5<'de> for MobType
impl<'de> DeserializeV5<'de> for MobType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl SerializeV5 for MobType
impl SerializeV5 for MobType
impl Copy for MobType
impl Eq for MobType
impl StructuralEq for MobType
impl StructuralPartialEq for MobType
Auto Trait Implementations
impl RefUnwindSafe for MobType
impl Send for MobType
impl Sync for MobType
impl Unpin for MobType
impl UnwindSafe for MobType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more