pub struct Step {
pub pos: [i32; 3],
pub feet_y: f64,
pub kind: MoveKind,
pub node: NodeKind,
pub dig: Vec<[i32; 3]>,
pub place: Option<Place>,
}Expand description
One step of a path: the feet block to reach and how.
Fields§
§pos: [i32; 3]Feet block.
feet_y: f64Feet height when standing there (swim / climb steps: the block’s y).
kind: MoveKindThe move that reaches this step from the previous one.
node: NodeKindHow the player is held up here.
dig: Vec<[i32; 3]>Blocks to break before the move (in order).
place: Option<Place>Block to place before the move.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Forget for Step
impl Freeze for Step
impl Move for Step
impl RefUnwindSafe for Step
impl Send for Stepwhere
RawVecInner: Send,
impl Sync for Stepwhere
RawVecInner: Sync,
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Stepwhere
RawVecInner: UnwindSafe,
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