RBWCM-SDK Documentation - v1.1.0
    Preparing search index...

    Interface DraftState

    The complete state of an ongoing draft session.

    interface DraftState {
        availablePool: number[];
        bannedMaps: string[];
        captains: Record<number, number>;
        currentMapBanIndex: number;
        currentPickIndex: number;
        finalMapId?: string;
        gameId: number;
        mapBanOrder: number[];
        mapPool: string[];
        mapSelectionMode: MapSelection;
        mapVotes?: Record<string, number>;
        phase: DraftPhase;
        pickOrder: number[];
        playersCache: Record<number, DraftPlayerCache>;
        playerVotes?: Record<number, string>;
        queueId: string;
        teams: Record<number, number[]>;
    }
    Index

    Properties

    availablePool: number[]

    Array of userIds currently available to be picked

    bannedMaps: string[]

    Array of mapIds that have been banned

    captains: Record<number, number>

    Map of teamIndex -> captain's userId

    currentMapBanIndex: number
    currentPickIndex: number
    finalMapId?: string
    gameId: number
    mapBanOrder: number[]

    Order of team indices for map banning

    mapPool: string[]

    Array of mapIds currently in the pool

    mapSelectionMode: MapSelection
    mapVotes?: Record<string, number>

    Map of mapId -> total votes received

    phase: DraftPhase
    pickOrder: number[]
    playersCache: Record<number, DraftPlayerCache>

    Map of userId -> player info

    playerVotes?: Record<number, string>

    Map of userId -> the mapId they voted for

    queueId: string
    teams: Record<number, number[]>

    Map of teamIndex -> Array of userIds