Struct rust_sc2::units::PlayerUnits [−][src]
pub struct PlayerUnits {
pub all: Units,
pub units: Units,
pub structures: Units,
pub townhalls: Units,
pub workers: Units,
pub gas_buildings: Units,
pub larvas: Units,
pub placeholders: Units,
}Structured player units (yours or opponent’s).
Fields
all: UnitsAll player units (includes both units and structures).
units: UnitsUnits only, without structures.
structures: UnitsStructures only.
townhalls: UnitsFrom all structures only townhalls here.
workers: UnitsWorkers only (doesn’t include MULEs).
gas_buildings: UnitsThe gas buildings on geysers used to gather gas.
larvas: UnitsMost of zerg units are morphed from it (Populated for zergs only).
placeholders: UnitsKind of things that appear when you order worker to build something but construction didn’t started yet.
Trait Implementations
impl Clone for PlayerUnits[src]
impl Clone for PlayerUnits[src]fn clone(&self) -> PlayerUnits[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for PlayerUnits[src]
impl Default for PlayerUnits[src]fn default() -> PlayerUnits[src]
Auto Trait Implementations
impl !RefUnwindSafe for PlayerUnits
impl !RefUnwindSafe for PlayerUnitsimpl !Send for PlayerUnits
impl !Send for PlayerUnitsimpl !Sync for PlayerUnits
impl !Sync for PlayerUnitsimpl Unpin for PlayerUnits
impl Unpin for PlayerUnitsimpl !UnwindSafe for PlayerUnits
impl !UnwindSafe for PlayerUnits