pub enum Locomotion {
Idle,
Walk,
Run,
}Expand description
Locomotion state the renderer maps to sprite columns: standing, walking, or
running. Run only looks distinct when the sheet has dedicated run frames (the
canonical overworld layout puts them at cols 3/4 — see frame_col); otherwise
the consumer reuses the walk frames at the faster running cadence.
Variants§
Trait Implementations§
Source§impl Clone for Locomotion
impl Clone for Locomotion
Source§fn clone(&self) -> Locomotion
fn clone(&self) -> Locomotion
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 Locomotion
Source§impl Debug for Locomotion
impl Debug for Locomotion
impl Eq for Locomotion
Source§impl PartialEq for Locomotion
impl PartialEq for Locomotion
impl StructuralPartialEq for Locomotion
Auto Trait Implementations§
impl Freeze for Locomotion
impl RefUnwindSafe for Locomotion
impl Send for Locomotion
impl Sync for Locomotion
impl Unpin for Locomotion
impl UnsafeUnpin for Locomotion
impl UnwindSafe for Locomotion
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