If successful, puts the game into the status: in_game. Will be able to request actions, observations and step the game.

Generated

from protobuf message SC2APIProtocol.RequestJoinGame

interface RequestJoinGame {
    clientPorts?: PortSet[];
    hostIp?: string;
    options?: InterfaceOptions;
    participation: {
        oneofKind: "race";
        race: Race;
    } | {
        observedPlayerId: number;
        oneofKind: "observedPlayerId";
    } | {
        oneofKind: undefined;
    };
    playerName?: string;
    serverPorts?: PortSet;
    sharedPort?: number;
}

Properties

clientPorts?: PortSet[]

Generated

from protobuf field: repeated SC2APIProtocol.PortSet client_ports = 5;

hostIp?: string

Generated

from protobuf field: optional string host_ip = 8;

Generated

from protobuf field: optional SC2APIProtocol.InterfaceOptions options = 3;

participation: {
    oneofKind: "race";
    race: Race;
} | {
    observedPlayerId: number;
    oneofKind: "observedPlayerId";
} | {
    oneofKind: undefined;
}

Type declaration

  • oneofKind: "race"
  • race: Race

    Generated

    from protobuf field: SC2APIProtocol.Race race = 1;

Type declaration

  • observedPlayerId: number

    Generated

    from protobuf field: uint32 observed_player_id = 2;

  • oneofKind: "observedPlayerId"

Type declaration

  • oneofKind: undefined

Generated

from protobuf oneof: participation

playerName?: string

Generated

from protobuf field: optional string player_name = 7;

serverPorts?: PortSet

Generated

from protobuf field: optional SC2APIProtocol.PortSet server_ports = 4;

sharedPort?: number

Currently only a singe client is supported.

Generated

from protobuf field: optional int32 shared_port = 6;

Generated using TypeDoc