pub enum Fire {
Melee {
damage: i32,
range: f64,
},
Hitscan {
damage: i32,
pellets: i32,
spread: f64,
},
Projectile(ProjKind),
Burst {
kind: ProjKind,
count: i32,
spread: f64,
},
Throw {
fuse: f64,
power: f64,
},
Spray {
damage: i32,
range: f64,
},
Curse {
damage: i32,
},
}Variants§
Melee
Hitscan
Projectile(ProjKind)
Burst
Several projectiles fanned out horizontally.
Throw
Thrown explosive with a fuse (seconds) and throw strength (0..1).
Spray
Short-range flame cone.
Curse
Voodoo: damage every visible enemy.
Trait Implementations§
impl Copy for Fire
impl StructuralPartialEq for Fire
Auto Trait Implementations§
impl Freeze for Fire
impl RefUnwindSafe for Fire
impl Send for Fire
impl Sync for Fire
impl Unpin for Fire
impl UnsafeUnpin for Fire
impl UnwindSafe for Fire
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