Struct sc2::UnitTypeData [] [src]

pub struct UnitTypeData {
    pub unit_type: UnitType,
    pub name: String,
    pub available: bool,
    pub cargo_size: u32,
    pub mineral_cost: u32,
    pub vespene_cost: u32,
    pub attributes: Vec<Attribute>,
    pub movement_speed: f32,
    pub armor: f32,
    pub weapons: Vec<Weapon>,
    pub food_required: f32,
    pub food_provided: f32,
    pub ability: Ability,
    pub race: Option<Race>,
    pub build_time: f32,
    pub has_minerals: bool,
    pub has_vespene: bool,
    pub tech_alias: Vec<UnitType>,
    pub unit_alias: UnitType,
    pub tech_requirement: UnitType,
    pub require_attached: bool,
}

data about a unit type

this data is derived from the catalog (xml) data of the game and upgrades

Fields

stable unit ID

unit type name (corresponds to the game's catalog)

whether this unit is available to the current mods/map

number of cargo slots this unit occupies in a transport

cost in minerals to build this unit

cost in vespene to build this unit

unit attributes (may change based on upgrades)

movement speed of this unit

armor of this unit

weapons on this unit

how much food this unit requires

how much food this unit provides

which ability id creates this unit

the race this unit belongs to

how long a unit takes to build

whether this unit can have minerals (mineral patches)

whether this unit can have vespene (vespene geysers)

units this is equivalent to in terms of satisfying tech requirements

units that are morphed variants of the same unit

structure required to build this unit (or any with same tech alias)

whether tech requirement is an addon

Trait Implementations

impl Debug for UnitTypeData
[src]

[src]

Formats the value using the given formatter.

impl Clone for UnitTypeData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more