Struct common::MoveStatus
source · [−]pub struct MoveStatus {
pub duration: WorldDuration,
pub start_frame: WorldInstant,
pub from: Point,
pub to: Point,
}
Expand description
Information about a character moving from point A to B.
Fields
duration: WorldDuration
How many timesteps the move will take.
start_frame: WorldInstant
The timestep during which the movement started.
from: Point
The point where the player was during the start of the move. May be outside the bounds of the chunks, if the move originated from a neighboring chunk.
to: Point
The point where the player ends up as a result of the move.
Trait Implementations
sourceimpl Clone for MoveStatus
impl Clone for MoveStatus
sourcefn clone(&self) -> MoveStatus
fn clone(&self) -> MoveStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for MoveStatus
impl<'de> Deserialize<'de> for MoveStatus
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for MoveStatus
impl Serialize for MoveStatus
Auto Trait Implementations
impl RefUnwindSafe for MoveStatus
impl Send for MoveStatus
impl Sync for MoveStatus
impl Unpin for MoveStatus
impl UnwindSafe for MoveStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more