# Function: createTeam
▸ createTeam(this
: void, params
: CreateTeamParams): Promise‹CreateTeamRes›
创建队伍
# 参数:
属性 | 类型 | 描述 |
---|---|---|
this | void | - |
params | CreateTeamParams | 调用参数 |
CreateTeamParams
属性 | 类型 | 描述 |
---|---|---|
gameMode | number | - |
complete? | Method | 操作完成时(成功或失败),均会调用该回调函数 |
fail? | Method | 操作失败时,调用该回调函数 |
success? | Method | 操作成功时,调用该回调函数 |
# 返回值:
Promise‹CreateTeamRes›
← createRoom endGame →