# Interface: MatchParams

MatchParams()

发起匹配 - 请求参数

# Properties

# Optional matchScore

matchScore? : number | Long

匹配分数,决定匹配到的玩家的分数,不传则按系统默认

Returns: number | Long


# Optional matchTag

matchTag? : number | Long

匹配标签,只有匹配标签相同的玩家才会匹配到一起

Returns: number | Long


# Optional teamId

teamId? : number | Long

队伍id,不传则默认取当前所在队伍id

Returns: number | Long

# Methods

# Optional complete

complete(this: void, res: MatchRes | MogsError): void

Inherited from GetUserSignParams.complete

操作完成时(成功或失败),均会调用该回调函数

# 参数:

属性 类型
this void
res MatchRes | MogsError

# 返回值:

void


# Optional fail

fail(this: void, error: MogsError): void

Inherited from GetUserSignParams.fail

操作失败时,调用该回调函数

# 参数:

属性 类型
this void
error MogsError

# 返回值:

void


# Optional success

success(this: void, res: MatchRes): void

Inherited from GetUserSignParams.success

操作成功时,调用该回调函数

# 参数:

属性 类型
this void
res MatchRes

MatchRes

属性 类型 描述
eventList? keyof MogsEvent[] 当前 Action 所触发的所有事件的列表
matchStartTime Long 发起匹配的时间戳

# 返回值:

void