pub struct MovingUnitType {Show 13 fields
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,
/* private fields */
}
Fields§
§move_sprite: Option<SpriteID>
§run_sprite: Option<SpriteID>
§turn_speed: f32
§size_class: u8
§trailing_unit: Option<UnitTypeID>
§trailing_options: u8
§trailing_spacing: f32
§move_algorithm: u8
§turn_radius: f32
§turn_radius_speed: f32
§maximum_yaw_per_second_moving: f32
§stationary_yaw_revolution_time: f32
§maximum_yaw_per_second_stationary: f32
Implementations§
Methods from Deref<Target = AnimatedUnitType>§
Methods from Deref<Target = BaseUnitType>§
Trait Implementations§
Source§impl Clone for MovingUnitType
impl Clone for MovingUnitType
Source§fn clone(&self) -> MovingUnitType
fn clone(&self) -> MovingUnitType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MovingUnitType
impl Debug for MovingUnitType
Source§impl Default for MovingUnitType
impl Default for MovingUnitType
Source§fn default() -> MovingUnitType
fn default() -> MovingUnitType
Returns the “default value” for a type. Read more
Source§impl Deref for MovingUnitType
impl Deref for MovingUnitType
Source§impl From<MovingUnitType> for UnitType
impl From<MovingUnitType> for UnitType
Source§fn from(v: MovingUnitType) -> Self
fn from(v: MovingUnitType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MovingUnitType
impl RefUnwindSafe for MovingUnitType
impl Send for MovingUnitType
impl Sync for MovingUnitType
impl Unpin for MovingUnitType
impl UnwindSafe for MovingUnitType
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