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: u32In-game player id.
minerals: u32Amount of minerals bot currently has.
vespene: u32Amount of vespene gas bot currently has.
food_cap: u32Supply capacity.
food_used: u32Supply used in total.
food_army: u32Supply used by combat units.
food_workers: u32Supply used by workers (workers count).
idle_worker_count: u32The count of your idle workers.
army_count: u32The count of your combat units.
warp_gate_count: u32The count of your free warp gates.
larva_count: u32The count of your larva.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Common
impl Send for Common
impl Sync for Common
impl Unpin for Common
impl UnwindSafe for Common
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,