pub struct FluidSpawner;Expand description
High-level API for spawning themed fluid particle bursts.
Implementations§
Source§impl FluidSpawner
impl FluidSpawner
Sourcepub fn spawn_bleed(
particles: &mut Vec<FluidParticle>,
entity_pos: Vec3,
direction: Vec3,
count: usize,
)
pub fn spawn_bleed( particles: &mut Vec<FluidParticle>, entity_pos: Vec3, direction: Vec3, count: usize, )
Drip blood particles downward from a wound at entity_pos in direction.
Sourcepub fn spawn_fire_pool(
particles: &mut Vec<FluidParticle>,
position: Vec3,
radius: f32,
count: usize,
)
pub fn spawn_fire_pool( particles: &mut Vec<FluidParticle>, position: Vec3, radius: f32, count: usize, )
Spawn a burning fire pool on the floor.
Sourcepub fn spawn_ice_spread(
particles: &mut Vec<FluidParticle>,
position: Vec3,
radius: f32,
count: usize,
)
pub fn spawn_ice_spread( particles: &mut Vec<FluidParticle>, position: Vec3, radius: f32, count: usize, )
Spawn frost spreading outward on the floor.
Sourcepub fn spawn_healing_fountain(
particles: &mut Vec<FluidParticle>,
position: Vec3,
count: usize,
)
pub fn spawn_healing_fountain( particles: &mut Vec<FluidParticle>, position: Vec3, count: usize, )
Spawn an upward green healing particle fountain.
Sourcepub fn spawn_ouroboros_flow(
particles: &mut Vec<FluidParticle>,
from_pos: Vec3,
to_pos: Vec3,
count: usize,
)
pub fn spawn_ouroboros_flow( particles: &mut Vec<FluidParticle>, from_pos: Vec3, to_pos: Vec3, count: usize, )
Spawn dark fluid flowing from from_pos (player damage source)
to to_pos (boss / Ouroboros target). The Ouroboros mechanic:
damage dealt to the player feeds the boss.
Sourcepub fn spawn_necro_crawl(
particles: &mut Vec<FluidParticle>,
origin: Vec3,
corpse_positions: &[Vec3],
particles_per_corpse: usize,
)
pub fn spawn_necro_crawl( particles: &mut Vec<FluidParticle>, origin: Vec3, corpse_positions: &[Vec3], particles_per_corpse: usize, )
Spawn necromantic energy crawling toward corpse positions on the floor.
Sourcepub fn spawn_poison_bubbles(
particles: &mut Vec<FluidParticle>,
position: Vec3,
count: usize,
)
pub fn spawn_poison_bubbles( particles: &mut Vec<FluidParticle>, position: Vec3, count: usize, )
Spawn poison bubbling up from a position.
Sourcepub fn spawn_holy_rise(
particles: &mut Vec<FluidParticle>,
position: Vec3,
count: usize,
)
pub fn spawn_holy_rise( particles: &mut Vec<FluidParticle>, position: Vec3, count: usize, )
Spawn holy light rising upward.
Auto Trait Implementations§
impl Freeze for FluidSpawner
impl RefUnwindSafe for FluidSpawner
impl Send for FluidSpawner
impl Sync for FluidSpawner
impl Unpin for FluidSpawner
impl UnsafeUnpin for FluidSpawner
impl UnwindSafe for FluidSpawner
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> 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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.