[−][src]Struct genie_dat::BaseCombatUnitType
Fields
base_armor: u16
weapons: Vec<WeaponInfo>
armors: Vec<WeaponInfo>
defense_terrain_bonus: Option<u16>
weapon_range_max: f32
area_effect_range: f32
attack_speed: f32
missile_id: Option<UnitTypeID>
base_hit_chance: i16
break_off_combat: i8
frame_delay: i16
weapon_offset: (f32, f32, f32)
blast_level_offense: i8
weapon_range_min: f32
missed_missile_spread: f32
fight_sprite: Option<SpriteID>
displayed_armor: i16
displayed_attack: i16
displayed_range: f32
displayed_reload_time: f32
Implementations
impl BaseCombatUnitType
[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 = ActionUnitType>
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 BaseCombatUnitType
[src]
fn clone(&self) -> BaseCombatUnitType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BaseCombatUnitType
[src]
impl Default for BaseCombatUnitType
[src]
fn default() -> BaseCombatUnitType
[src]
impl Deref for BaseCombatUnitType
[src]
type Target = ActionUnitType
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl From<BaseCombatUnitType> for UnitType
[src]
fn from(v: BaseCombatUnitType) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for BaseCombatUnitType
impl Send for BaseCombatUnitType
impl Sync for BaseCombatUnitType
impl Unpin for BaseCombatUnitType
impl UnwindSafe for BaseCombatUnitType
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>,