pub enum MovePath {
Linear([i16; 3]),
Stepped(Vec<MoveStep>),
}Expand description
The position change of a relative entity move.
Variants§
Linear([i16; 3])
One delta (x, y, z in 1/4096 block), applied over the usual interpolation.
Stepped(Vec<MoveStep>)
Several deltas with tick offsets. Never empty on the wire: an empty list would
encode as step count 0, which reads back as MovePath::Linear.
Trait Implementations§
impl Eq for MovePath
impl StructuralPartialEq for MovePath
Auto Trait Implementations§
impl Forget for MovePath
impl Freeze for MovePath
impl Move for MovePath
impl RefUnwindSafe for MovePath
impl Send for MovePath
impl Sync for MovePath
impl Unpin for MovePath
impl UnsafeUnpin for MovePath
impl UnwindSafe for MovePath
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