[][src]Struct genie_dat::MovingUnitType

pub struct MovingUnitType {
    pub move_sprite: Option<SpriteID>,
    pub run_sprite: Option<SpriteID>,
    pub turn_speed: f32,
    pub size_class: u8,
    pub trailing_unit: Option<UnitTypeID>,
    pub trailing_options: u8,
    pub trailing_spacing: f32,
    pub move_algorithm: u8,
    pub turn_radius: f32,
    pub turn_radius_speed: f32,
    pub maximum_yaw_per_second_moving: f32,
    pub stationary_yaw_revolution_time: f32,
    pub maximum_yaw_per_second_stationary: f32,
    // some fields omitted
}

Fields

move_sprite: Option<SpriteID>run_sprite: Option<SpriteID>turn_speed: f32size_class: u8trailing_unit: Option<UnitTypeID>trailing_options: u8trailing_spacing: f32move_algorithm: u8turn_radius: f32turn_radius_speed: f32maximum_yaw_per_second_moving: f32stationary_yaw_revolution_time: f32maximum_yaw_per_second_stationary: f32

Implementations

impl MovingUnitType[src]

pub fn read_from(input: impl Read, version: f32) -> Result<Self>[src]

pub fn write_to(&self, output: impl Write, version: f32) -> Result<()>[src]

Write this unit type to an output stream.

Methods from Deref<Target = AnimatedUnitType>

pub fn write_to(&self, output: impl Write, version: f32) -> Result<()>[src]

Write this unit type to an output stream.

Trait Implementations

impl Clone for MovingUnitType[src]

impl Debug for MovingUnitType[src]

impl Default for MovingUnitType[src]

impl Deref for MovingUnitType[src]

type Target = AnimatedUnitType

The resulting type after dereferencing.

impl From<MovingUnitType> for UnitType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.