pub struct Motion {
pub kind: MotionKind,
pub path: Option<String>,
pub speed_cells_per_s: Option<[f64; 2]>,
pub at_path_end: Option<String>,
pub face: Option<String>,
pub loop_s: Option<[f64; 2]>,
pub screen_x: Option<f64>,
pub altitude: Option<f64>,
}Fields§
§kind: MotionKind§path: Option<String>§speed_cells_per_s: Option<[f64; 2]>§at_path_end: Option<String>§face: Option<String>One of FACINGS.
loop_s: Option<[f64; 2]>Journeys before 0.12: the loop length range in seconds. Unused now
(the pace, speed_cells_per_s, sets the loop); still read.
screen_x: Option<f64>Journeys: where the character walks, as a fraction of the width.
altitude: Option<f64>Journeys: fly instead of walking, the feet this far down the screen (a fraction of the height), the land going by below.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Motion
impl<'de> Deserialize<'de> for Motion
Source§fn 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
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Forget for Motion
impl Freeze for Motion
impl Move for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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