pub enum ParticleKind {
Click,
ClickBig,
Auto,
Golden,
Confetti,
}Expand description
Visual flavor for a particle. Drives color/weight in the renderer; the motion model (rise + horizontal drift) is identical across kinds.
Variants§
Click
Default +1 from a normal click — white→red fade.
ClickBig
High-power click (Frenzy active, big upgrade mults). Bold +
warm-yellow accent so it stands out from a swarm of +1s.
Auto
Auto-fingerer income particle.
Golden
Golden-catch label (“FRENZY!”, “+1.2k”, etc). Longer life, brighter palette.
Confetti
Bulk-buy confetti pop. Coloured glyphs, shorter than a click.
Trait Implementations§
Source§impl Clone for ParticleKind
impl Clone for ParticleKind
Source§fn clone(&self) -> ParticleKind
fn clone(&self) -> ParticleKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for ParticleKind
impl PartialEq for ParticleKind
Source§fn eq(&self, other: &ParticleKind) -> bool
fn eq(&self, other: &ParticleKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ParticleKind
impl Eq for ParticleKind
impl StructuralPartialEq for ParticleKind
Auto Trait Implementations§
impl Freeze for ParticleKind
impl RefUnwindSafe for ParticleKind
impl Send for ParticleKind
impl Sync for ParticleKind
impl Unpin for ParticleKind
impl UnsafeUnpin for ParticleKind
impl UnwindSafe for ParticleKind
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<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
Compare self to
key and return true if they are equal.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