[][src]Struct rlbot::MatchSettings

pub struct MatchSettings<'a> {
    pub player_configurations: Vec<PlayerConfiguration<'a>>,
    pub game_mode: GameMode,
    pub game_map: GameMap,
    pub skip_replays: bool,
    pub instant_start: bool,
    pub mutator_settings: MutatorSettings,
    // some fields omitted
}

Options for starting a match.

Pass this to RLBot::start_match` to make the magic happen.

Fields

player_configurations: Vec<PlayerConfiguration<'a>>game_mode: GameModegame_map: GameMapskip_replays: boolinstant_start: boolmutator_settings: MutatorSettings

Methods

impl<'a> MatchSettings<'a>[src]

pub fn new() -> Self[src]

pub fn rlbot_vs_rlbot(blue_name: &'a str, orange_name: &'a str) -> Self[src]

Create a MatchSettings for a 1v1 game with two RLBot-controlled bots.

pub fn rlbot_vs_allstar(rlbot_name: &'a str, allstar_name: &'a str) -> Self[src]

Create a MatchSettings for a 1v1 game with Team Blue as an RLBot-controlled bot, and Team Orange as a Psyonix all-star bot.

pub fn allstar_vs_allstar(blue_name: &'a str, orange_name: &'a str) -> Self[src]

Create a MatchSettings for a 1v1 game with two Psyonix all-star bots.

pub fn player_configurations(
    self,
    player_configurations: impl IntoIterator<Item = PlayerConfiguration<'a>>
) -> Self
[src]

pub fn game_mode(self, game_mode: GameMode) -> Self[src]

pub fn game_map(self, game_map: GameMap) -> Self[src]

pub fn skip_replays(self, skip_replays: bool) -> Self[src]

pub fn instant_start(self, instant_start: bool) -> Self[src]

pub fn mutator_settings(self, mutator_settings: MutatorSettings) -> Self[src]

Trait Implementations

impl<'a> Clone for MatchSettings<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> Default for MatchSettings<'a>[src]

Auto Trait Implementations

impl<'a> Send for MatchSettings<'a>

impl<'a> Sync for MatchSettings<'a>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,