pub enum TeleportSpinPhase {
SpinInPlace,
SpinUp,
Delay,
Done,
}Expand description
Phase of the leave-map spin animation.
Variants§
SpinInPlace
Spin in place: 16 spins with frame delays 16,15,…,1 (136 frames total); a loop sound cue fires whenever the current spin’s delay is a multiple of 4 (spins 0, 4, 8, 12).
SpinUp
Spin while moving up: 5 spin steps of 16px each (3-frame step delay), a departure cue at the start.
Delay
The extra 10-frame delay used when not standing on a warp pad.
Done
Animation finished; the caller starts the fade-out-to-white warp.
Trait Implementations§
Source§impl Clone for TeleportSpinPhase
impl Clone for TeleportSpinPhase
Source§fn clone(&self) -> TeleportSpinPhase
fn clone(&self) -> TeleportSpinPhase
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 moreimpl Copy for TeleportSpinPhase
Source§impl Debug for TeleportSpinPhase
impl Debug for TeleportSpinPhase
Source§impl<'de> Deserialize<'de> for TeleportSpinPhase
impl<'de> Deserialize<'de> for TeleportSpinPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TeleportSpinPhase
Source§impl PartialEq for TeleportSpinPhase
impl PartialEq for TeleportSpinPhase
Source§impl Serialize for TeleportSpinPhase
impl Serialize for TeleportSpinPhase
impl StructuralPartialEq for TeleportSpinPhase
Auto Trait Implementations§
impl Freeze for TeleportSpinPhase
impl RefUnwindSafe for TeleportSpinPhase
impl Send for TeleportSpinPhase
impl Sync for TeleportSpinPhase
impl Unpin for TeleportSpinPhase
impl UnsafeUnpin for TeleportSpinPhase
impl UnwindSafe for TeleportSpinPhase
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