pub enum EnterMapSpinPhase {
SpinDown,
SpinInPlace,
Done,
}Expand description
Phase of the arrival spin, the counterpart of TeleportSpinState:
after a teleport-class warp arrival, the player descends from off the
top of the screen, then spins in place.
Variants§
SpinDown
Spin while moving down: 5 spin steps of 16px each (3-frame step delay), a descent cue at the start, an arrival cue after the last step.
SpinInPlace
Spin in place with delays 0,1,…,7 (8 spins, silent) — skipped when the player arrives ON a warp pad or hole.
Done
Finished; the caller restores the saved facing and Y position.
Trait Implementations§
Source§impl Clone for EnterMapSpinPhase
impl Clone for EnterMapSpinPhase
Source§fn clone(&self) -> EnterMapSpinPhase
fn clone(&self) -> EnterMapSpinPhase
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 EnterMapSpinPhase
Source§impl Debug for EnterMapSpinPhase
impl Debug for EnterMapSpinPhase
Source§impl<'de> Deserialize<'de> for EnterMapSpinPhase
impl<'de> Deserialize<'de> for EnterMapSpinPhase
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 EnterMapSpinPhase
Source§impl PartialEq for EnterMapSpinPhase
impl PartialEq for EnterMapSpinPhase
Source§impl Serialize for EnterMapSpinPhase
impl Serialize for EnterMapSpinPhase
impl StructuralPartialEq for EnterMapSpinPhase
Auto Trait Implementations§
impl Freeze for EnterMapSpinPhase
impl RefUnwindSafe for EnterMapSpinPhase
impl Send for EnterMapSpinPhase
impl Sync for EnterMapSpinPhase
impl Unpin for EnterMapSpinPhase
impl UnsafeUnpin for EnterMapSpinPhase
impl UnwindSafe for EnterMapSpinPhase
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