Struct rust_sc2::PlayerSettings [−][src]
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]
race: Race,
name: Option<&str>,
raw_affects_selection: bool,
raw_crop_to_playable_area: bool
) -> Self
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
impl RefUnwindSafe for PlayerSettings
[src]
impl Send for PlayerSettings
[src]
impl Sync for PlayerSettings
[src]
impl Unpin for PlayerSettings
[src]
impl UnwindSafe for PlayerSettings
[src]
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, 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>,