OnMatchMakingRoomKick
public MatchMakingKickUserEventHandler OnMatchMakingRoomKick;
Argument
Value | Type | Description |
---|---|---|
args | MatchMakingInteractionEventArgs | Success/failure of kick out |
MatchMakingInteractionEventArgs
Value | Type | Description |
---|---|---|
ErrInfo | ErrorCode | Error information |
Reason | string | Error description |
Description
This event is called to only the host when the user kick-out method is called.
- Information on the kicked-out user is called to all users in the waiting room as a OnMatchMakingRoomLeave event.
In order for an event to be called, the message sending/receiving method must be called.
Example
Backend.Match.OnMatchMakingRoomKick = (MatchMakingInteractionEventArgs args) => {
// TODO
};
Argument cases
When the user is kicked out successfully
ErrInfo : ErrorCode.Success
When the user kicked themselves out
ErrInfo : ErrorCode.Match_Making_NotFoundGamer
Reason : Invalid 'nickName' gamer.
When a user not in the waiting room is kicked out
ErrInfo : ErrorCode.Match_Making_NotFoundGamer
Reason : Invalid 'nickName' gamer.
When a non-host user tries to kick another user out
ErrInfo : ErrorCode.InvalidOperation
Reason : You are not owner of room.