pub enum EmitterPreset {
Show 27 variants
DeathExplosion {
color: Vec4,
},
LevelUpFountain,
CritBurst,
HitSparks {
color: Vec4,
count: u8,
},
LootSparkle {
color: Vec4,
},
StatusAmbient {
effect_mask: u8,
},
StunOrbit,
RoomAmbient {
room_type_id: u8,
},
BossEntrance {
boss_id: u8,
},
GravitationalCollapse {
color: Vec4,
attractor: AttractorType,
},
SpellStream {
element_color: Vec4,
},
HealSpiral,
EntropyCascade,
FireBurst {
intensity: f32,
},
SmokePuff,
ElectricDischarge {
color: Vec4,
},
BloodSplatter {
color: Vec4,
count: u8,
},
IceShatter,
PoisonCloud,
TeleportFlash {
color: Vec4,
},
ShieldHit {
shield_color: Vec4,
},
CoinScatter {
count: u8,
},
RubbleDebris {
count: u8,
},
RainShower,
SnowFall,
ConfettiBurst,
Custom {
template: ParticleTemplate,
count: u32,
shape: EmitterShape,
},
}Expand description
Preset emitter configurations for common game events.
Variants§
DeathExplosion
40 radial-burst particles, gravity+friction, lifetime 1.5s. Used for enemy death.
LevelUpFountain
30 upward fountain particles. Used for level-up.
CritBurst
16 spark ring. Used for crits.
HitSparks
8-16 hit sparks. Used for normal hits.
LootSparkle
12 slow-orbiting sparkles. Used for loot drops.
StatusAmbient
Status effect ambient particles.
StunOrbit
Stun orbiting stars.
RoomAmbient
Room-type ambient particles.
BossEntrance
Boss-specific entrance burst.
GravitationalCollapse
Gravitational collapse spiral (for heavy damage hits).
SpellStream
Self-organizing spell stream.
HealSpiral
Golden spiral healing ascent.
EntropyCascade
Entropy cascade (corruption milestone, fills entire screen).
FireBurst
Fire burst.
SmokePuff
Smoke puff.
ElectricDischarge
Electric discharge.
BloodSplatter
Blood splatter.
IceShatter
Ice shatter.
PoisonCloud
Poison cloud.
TeleportFlash
Teleport flash.
ShieldHit
Shield hit impact.
CoinScatter
Coin scatter.
RubbleDebris
Rubble debris.
RainShower
Rain shower.
SnowFall
Snow fall.
ConfettiBurst
Confetti burst.
Custom
Custom template.
Trait Implementations§
Source§impl Clone for EmitterPreset
impl Clone for EmitterPreset
Source§fn clone(&self) -> EmitterPreset
fn clone(&self) -> EmitterPreset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for EmitterPreset
impl RefUnwindSafe for EmitterPreset
impl Send for EmitterPreset
impl Sync for EmitterPreset
impl Unpin for EmitterPreset
impl UnsafeUnpin for EmitterPreset
impl UnwindSafe for EmitterPreset
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.