[−][src]Struct genie_dat::BaseUnitType
Fields
id: UnitTypeID
string_id: StringKey
unit_class: UnitClass
standing_sprite_1: Option<SpriteID>
standing_sprite_2: Option<SpriteID>
dying_sprite: Option<SpriteID>
undead_sprite: Option<SpriteID>
undead_flag: u8
hp: u16
los: f32
garrison_capacity: u8
radius: (f32, f32, f32)
train_sound: Option<SoundID>
damage_sound: Option<SoundID>
death_spawn: Option<UnitTypeID>
sort_number: u8
can_be_built_on: bool
hide_in_scenario_editor: bool
portrait_picture: Option<GraphicID>
enabled: bool
disabled: bool
tile_req: (i16, i16)
center_tile_req: (i16, i16)
construction_radius: (f32, f32)
elevation_flag: bool
fog_flag: bool
terrain_restriction_id: u16
movement_type: u8
attribute_max_amount: u16
attribute_rot: f32
area_effect_level: u8
combat_level: u8
select_level: u8
map_draw_level: u8
unit_level: u8
multiple_attribute_mod: f32
map_color: u8
help_string_id: StringKey
help_page_id: u32
hotkey_id: u32
recyclable: bool
track_as_resource: bool
create_doppleganger: bool
resource_group: u8
occlusion_mask: u8
obstruction_type: u8
selection_shape: u8
object_flags: u32
civilization: u8
attribute_piece: u8
outline_radius: (f32, f32, f32)
attributes: ArrayVec<[UnitAttribute; 3]>
damage_sprites: Vec<DamageSprite>
selected_sound: Option<SoundID>
death_sound: Option<SoundID>
attack_reaction: u8
convert_terrain_flag: u8
copy_id: u16
unit_group: u16
Implementations
impl BaseUnitType
[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.
Trait Implementations
impl Clone for BaseUnitType
[src]
fn clone(&self) -> BaseUnitType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BaseUnitType
[src]
impl Default for BaseUnitType
[src]
fn default() -> BaseUnitType
[src]
impl From<BaseUnitType> for UnitType
[src]
fn from(v: BaseUnitType) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for BaseUnitType
impl Send for BaseUnitType
impl Sync for BaseUnitType
impl Unpin for BaseUnitType
impl UnwindSafe for BaseUnitType
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>,