pub enum MoveResult {
Walking,
LedgeJump,
TurnedOnly,
Blocked(CollisionResult),
ReachedMapEdge,
Warped {
warp_index: usize,
},
StillMoving,
NoInput,
}Expand description
Result of processing a movement attempt.
Variants§
Walking
Player started walking to the target tile.
LedgeJump
Player started a ledge jump.
TurnedOnly
Player only turned to face a new direction (no movement).
Blocked(CollisionResult)
Movement was blocked (wall, NPC, etc.).
ReachedMapEdge
Player reached the edge of the map (connection should be checked).
Warped
Player stepped onto a warp tile.
StillMoving
Player is still mid-step from previous movement.
NoInput
No input was pressed.
Trait Implementations§
Source§impl Clone for MoveResult
impl Clone for MoveResult
Source§fn clone(&self) -> MoveResult
fn clone(&self) -> MoveResult
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 MoveResult
Source§impl Debug for MoveResult
impl Debug for MoveResult
impl Eq for MoveResult
Source§impl PartialEq for MoveResult
impl PartialEq for MoveResult
impl StructuralPartialEq for MoveResult
Auto Trait Implementations§
impl Freeze for MoveResult
impl RefUnwindSafe for MoveResult
impl Send for MoveResult
impl Sync for MoveResult
impl Unpin for MoveResult
impl UnsafeUnpin for MoveResult
impl UnwindSafe for MoveResult
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