The search keyword must be a single word (no spaces).

Function InitGenericPlayerSlots

Line
10096
Location
blizzard.j
Constant?
no
Type
function
Arguments
nothing
Returns
nothing
10096
function InitGenericPlayerSlots takes nothing returns nothing
10097
    local gametype gType = GetGameTypeSelected()
10098
10099
    if (gType == GAME_TYPE_MELEE) then
10100
        call MeleeInitPlayerSlots()
10101
    elseif (gType == GAME_TYPE_FFA) then
10102
        call FFAInitPlayerSlots()
10103
    elseif (gType == GAME_TYPE_USE_MAP_SETTINGS) then
10104
        // Do nothing; the map-specific script handles this.
10105
    elseif (gType == GAME_TYPE_ONE_ON_ONE) then
10106
        call OneOnOneInitPlayerSlots()
10107
    elseif (gType == GAME_TYPE_TWO_TEAM_PLAY) then
10108
        call TeamInitPlayerSlots(2)
10109
    elseif (gType == GAME_TYPE_THREE_TEAM_PLAY) then
10110
        call TeamInitPlayerSlots(3)
10111
    elseif (gType == GAME_TYPE_FOUR_TEAM_PLAY) then
10112
        call TeamInitPlayerSlots(4)
10113
    else
10114
        // Unrecognized Game Type
10115
    endif
10116
endfunction