Enum sc2::PlayerSetup [] [src]

pub enum PlayerSetup {
    Computer {
        race: Race,
        difficulty: Difficulty,
    },
    Player {
        race: Race,
    },
}

settings for players

Variants

add a built-in StarCraft II bot with the given race and difficulty

Fields of Computer

race of the computer

difficulty setting

add a user-controlled player

Fields of Player

race of the player

Methods

impl PlayerSetup
[src]

[src]

does the PlayerSetup represent a player

[src]

does the PlayerSetup represent a computer

Trait Implementations

impl Debug for PlayerSetup
[src]

[src]

Formats the value using the given formatter.

impl Copy for PlayerSetup
[src]

impl Clone for PlayerSetup
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more