Struct sc2::data::UnitTypeData [] [src]

pub struct UnitTypeData { /* fields omitted */ }

data about a unit type

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

Methods

impl UnitTypeData
[src]

[src]

stable unit ID

[src]

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

[src]

whether this unit is available to the current mods/map

[src]

number of cargo slots this unit occupies in a transport

[src]

cost in minerals to build this unit

[src]

cost in vespene to build this unit

[src]

unit attributes (may change based on upgrades)

[src]

movement speed of this unit

[src]

armor of this unit

[src]

weapons on this unit

[src]

how much food this unit requires

[src]

how much food this unit provides

[src]

which ability id creates this unit

[src]

the race this unit belongs to

[src]

how long a unit takes to build

[src]

whether this unit can have minerals (mineral patches)

[src]

whether this unit can have vespene (vespene geysers)

[src]

units this is equivalent to in terms of satisfying tech requirements

[src]

units that are morphed variants of the same unit

[src]

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

[src]

whether tech requirement is an addon

Trait Implementations

impl Debug for UnitTypeData
[src]

[src]

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

impl Send for UnitTypeData

impl Sync for UnitTypeData