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,
/* private fields */
}
Fields§
§default_task: Option<u16>
§search_radius: f32
§work_rate: f32
§drop_site: Option<UnitTypeID>
§backup_drop_site: Option<UnitTypeID>
§task_by_group: u8
§command_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§
Methods from Deref<Target = MovingUnitType>§
Methods from Deref<Target = AnimatedUnitType>§
Methods from Deref<Target = BaseUnitType>§
Trait Implementations§
Source§impl Clone for ActionUnitType
impl Clone for ActionUnitType
Source§fn clone(&self) -> ActionUnitType
fn clone(&self) -> ActionUnitType
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 ActionUnitType
impl Debug for ActionUnitType
Source§impl Default for ActionUnitType
impl Default for ActionUnitType
Source§fn default() -> ActionUnitType
fn default() -> ActionUnitType
Returns the “default value” for a type. Read more
Source§impl Deref for ActionUnitType
impl Deref for ActionUnitType
Source§impl From<ActionUnitType> for UnitType
impl From<ActionUnitType> for UnitType
Source§fn from(v: ActionUnitType) -> Self
fn from(v: ActionUnitType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActionUnitType
impl RefUnwindSafe for ActionUnitType
impl Send for ActionUnitType
impl Sync for ActionUnitType
impl Unpin for ActionUnitType
impl UnwindSafe for ActionUnitType
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