[−][src]Struct genie_dat::CombatUnitType
Fields
costs: ArrayVec<[AttributeCost; 3]>
The costs of creating a unit of this type.
create_time: u16
create_at_building: Option<UnitTypeID>
Unit type ID of the building or unit where this unit can be created.
Button location index where the button to create this unit should be shown when a
create_at_building
unit is selected.
rear_attack_modifier: f32
flank_attack_modifier: f32
hero_flag: u8
Is this unit a hero unit?
TODO what is special about hero units? Does it just opt into the healing behaviour?
garrison_sprite: Option<SpriteID>
volley_fire_amount: f32
max_attacks_in_volley: i8
volley_spread: (f32, f32)
volley_start_spread_adjustment: f32
volley_missile: Option<UnitTypeID>
special_attack_sprite: Option<SpriteID>
special_attack_flag: i8
displayed_pierce_armor: i16
Implementations
impl CombatUnitType
[src]
pub fn read_from(input: impl Read, version: f32) -> Result<Self>
[src]
Read this unit type from an input stream.
pub fn write_to(&self, output: impl Write, version: f32) -> Result<()>
[src]
Write this unit type to an output stream.
Methods from Deref<Target = BaseCombatUnitType>
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 CombatUnitType
[src]
fn clone(&self) -> CombatUnitType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CombatUnitType
[src]
impl Default for CombatUnitType
[src]
fn default() -> CombatUnitType
[src]
impl Deref for CombatUnitType
[src]
type Target = BaseCombatUnitType
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl From<CombatUnitType> for UnitType
[src]
fn from(v: CombatUnitType) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for CombatUnitType
impl Send for CombatUnitType
impl Sync for CombatUnitType
impl Unpin for CombatUnitType
impl UnwindSafe for CombatUnitType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,