Struct rust_sc2::game_state::Common[][src]

pub struct Common {
    pub player_id: u32,
    pub minerals: u32,
    pub vespene: u32,
    pub food_cap: u32,
    pub food_used: u32,
    pub food_army: u32,
    pub food_workers: u32,
    pub idle_worker_count: u32,
    pub army_count: u32,
    pub warp_gate_count: u32,
    pub larva_count: u32,
}

Common information of player.

Fields

player_id: u32

In-game player id.

minerals: u32

Amount of minerals bot currently has.

vespene: u32

Amount of vespene gas bot currently has.

food_cap: u32

Supply capacity.

food_used: u32

Supply used in total.

food_army: u32

Supply used by combat units.

food_workers: u32

Supply used by workers (workers count).

idle_worker_count: u32

The count of your idle workers.

army_count: u32

The count of your combat units.

warp_gate_count: u32

The count of your free warp gates.

larva_count: u32

The count of your larva.

Trait Implementations

impl Clone for Common[src]

impl Default for Common[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,