[][src]Struct genie_dat::ActionUnitType

pub struct ActionUnitType {
    pub default_task: Option<u16>,
    pub search_radius: f32,
    pub work_rate: f32,
    pub drop_site: Option<UnitTypeID>,
    pub backup_drop_site: Option<UnitTypeID>,
    pub task_by_group: u8,
    pub command_sound: Option<SoundID>,
    pub move_sound: Option<SoundID>,
    pub tasks: Option<TaskList>,
    pub run_pattern: u8,
    // some fields omitted
}

Fields

default_task: Option<u16>search_radius: f32work_rate: f32drop_site: Option<UnitTypeID>backup_drop_site: Option<UnitTypeID>task_by_group: u8command_sound: Option<SoundID>move_sound: Option<SoundID>tasks: Option<TaskList>

Task list for older versions; newer game versions store the task list at the root of the dat file, and use unit_type.copy_id to refer to one of those task lists.

run_pattern: u8

Implementations

impl ActionUnitType[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 = MovingUnitType>

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 ActionUnitType[src]

impl Debug for ActionUnitType[src]

impl Default for ActionUnitType[src]

impl Deref for ActionUnitType[src]

type Target = MovingUnitType

The resulting type after dereferencing.

impl From<ActionUnitType> 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.