Struct rust_sc2::PlayerSettings[][src]

pub struct PlayerSettings { /* fields omitted */ }

Settings that must be provided by a player when joining a game.

Implementations

impl PlayerSettings[src]

pub fn new(race: Race, name: Option<&str>) -> Self[src]

Constructs new settings with given Race and name. raw_affects_selection and raw_crop_to_playable_area are false by default.

pub fn configured(
    race: Race,
    name: Option<&str>,
    raw_affects_selection: bool,
    raw_crop_to_playable_area: bool
) -> Self
[src]

Constructs new settings with more options given.

raw_affects_selection: Bot will select units to which it gives orders.

raw_crop_to_playable_area: Maps and all coordinates will be crooped to playable area. That means map will start from (0, 0) and finsh on (playable area length by x, playable area length by y).

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, 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>,