pub enum FluidType {
Blood,
Fire,
Ice,
Dark,
Holy,
Poison,
Healing,
Necro,
}Expand description
Categorises a fluid by visual style, movement bias, and gameplay effect.
Variants§
Blood
Red blood — drips downward, pools on floor, increases bleed damage.
Fire
Orange fire — rises upward, burns, deals fire DoT.
Ice
Blue ice — spreads across floor, slows movement.
Dark
Purple/black dark energy — crawls along floor, drains mana.
Holy
Golden holy light — rises upward, purifies.
Poison
Green poison — bubbles, deals poison DoT.
Healing
Bright green healing — fountains upward, heals over time.
Necro
Dark purple necromantic energy — flows toward corpses.
Implementations§
Source§impl FluidType
impl FluidType
Sourcepub fn base_color(self) -> [f32; 4]
pub fn base_color(self) -> [f32; 4]
Base RGBA colour for this fluid type.
Sourcepub fn default_lifetime(self) -> f32
pub fn default_lifetime(self) -> f32
Default lifetime in seconds for particles of this type.
Sourcepub fn default_viscosity(self) -> f32
pub fn default_viscosity(self) -> f32
Default viscosity for this fluid type.
Sourcepub fn external_bias(self) -> Vec3
pub fn external_bias(self) -> Vec3
External force bias (added to gravity each step). Fire and Holy rise, Dark/Necro hug the floor, etc.
Sourcepub fn default_temperature(self) -> f32
pub fn default_temperature(self) -> f32
Default temperature for this fluid.
Sourcepub fn sprite_size(self) -> f32
pub fn sprite_size(self) -> f32
Point sprite size multiplier for rendering.
Trait Implementations§
impl Copy for FluidType
impl Eq for FluidType
impl StructuralPartialEq for FluidType
Auto Trait Implementations§
impl Freeze for FluidType
impl RefUnwindSafe for FluidType
impl Send for FluidType
impl Sync for FluidType
impl Unpin for FluidType
impl UnsafeUnpin for FluidType
impl UnwindSafe for FluidType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.