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]

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]

Formats the value using the given formatter. Read more

impl Clone for UnitTypeData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for UnitTypeData

impl Sync for UnitTypeData