Skip to main content
Version: 5.18.17

OnMatchMakingResponse

public MatchMakingResponseEventHandler OnMatchMakingResponse;

Argument​

ValueTypeDescription
argsMatchMakingResponseEventArgsInformation on successful matching request / request cancellation / matching establishment

args type names​

ValueTypeDescription
ErrInfoErrorCodeError information
ReasonstringError information
MatchCardIndatestringInformation on the established matching(Match card inDate)
RoomInfoMatchInGameRoomInfoInformation on the game room to be connected to

Description​

This event handler is called when the user requests/cancels matching or matching is established.

In order for an event to be called, the message sending/receiving method must be called.

Example​

Backend.Match.OnMatchMakingResponse = (MatchMakingResponseEventArgs args) => {
// TODO
};

Argument cases​

When the matching request is successful
ErrInfo : ErrorCode.Match_InProgress

When matching is established
ErrInfo : ErrorCode.Success
MatchCardIndate : inDate of the established matching card
RoomInfo : information on the in-game server and room to enter

When the matching request is canceled
ErrInfo : ErrorCode.Match_MatchMakingCanceled

When matching is requested with an invalid match type
ErrInfo : ErrorCode.Match_InvalidMatchType

When matching is requested with an invalid match mode type
ErrInfo : ErrorCode.Match_InvalidModeType

When the request is invalid
ErrInfo : ErrorCode.InvalidOperation
Reason : reason for error

When the matching request is sent two or more times
ErrInfo : ErrorCode.InvalidOperation
Reason : Already matchmaking in-progress.

When matching is requested by a user who is not the host
ErrInfo : ErrorCode.InvalidOperation
Reason : You are not owner of room.

When matching is canceled by a user who is not the host
ErrInfo : ErrorCode.InvalidOperation
Reason : You are not owner of room.

When there are more players in the waiting room than the permissible team members(e.g.: Three or more users are in the waiting room of 2:2 team match)
ErrInfo : ErrorCode.Match_Making_InvalidRoom
Reason : There are currently more squad members than are supported.

When there are two or more users in the waiting room and 1:1, solo battle matching is requested
ErrInfo : ErrorCode.InvalidOperation
Reason : Squad does not support OneOnOne or Melee mode.

When matching is established but an in-game room is not created in the server.(You must request matching again.)
ErrInfo : ErrorCode.Match_MatchMakingCanceled
Reason : FDM code return