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 std::ops::{Deref, DerefMut};

use super::Mob;

mod ghast;
pub use ghast::*;
mod phantom;
pub use phantom::*;

/// An interface of a flying mob
#[derive(Default)]
pub struct Flying {
    mob: Mob,
}
impl Deref for Flying {
    type Target = Mob;

    fn deref(&self) -> &Self::Target {
        &self.mob
    }
}
impl DerefMut for Flying {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.mob
    }
}