pub struct Gait {
pub facing: Facing,
pub frame: u8,
pub offset: (f32, f32),
}Expand description
How a unit between two tiles of its walk looks.
Fields§
§facing: FacingThe way it walks.
frame: u8Its walking frame.
offset: (f32, f32)How far it is from the tile it left towards the next, in tiles across and down.
Trait Implementations§
impl Copy for Gait
impl StructuralPartialEq for Gait
Auto Trait Implementations§
impl Freeze for Gait
impl RefUnwindSafe for Gait
impl Send for Gait
impl Sync for Gait
impl Unpin for Gait
impl UnsafeUnpin for Gait
impl UnwindSafe for Gait
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