pub struct DudeInfo {}Fields§
§seq_base: u32§health: i32§speed: f64Movement speed in xy units per second.
radius: f64§height: f64§flying: bool§attack: Attack§cooldown: f64Seconds between attacks.
spot_sound: i32Base ids of sound groups (spot, pain, die); 0 = none. Each group has 3 variants.
pain_sound: i32§die_sound: i32§attack_sound: i32§recoil_chance: f64Chance (0..1) that a hit interrupts the dude.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DudeInfo
impl RefUnwindSafe for DudeInfo
impl Send for DudeInfo
impl Sync for DudeInfo
impl Unpin for DudeInfo
impl UnsafeUnpin for DudeInfo
impl UnwindSafe for DudeInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more