OnMatchMakingRoomInvite
public MatchMakingInviteUserEventHandler OnMatchMakingRoomInvite;
Argument
Value | Type | Description |
---|---|---|
args | MatchMakingInteractionEventArgs | Success/failure status of user invitation |
MatchMakingInteractionEventArgs
Value | Type | Description |
---|---|---|
ErrInfo | ErrorCode | Error information |
Reason | string | Error description |
Description
This event handler is called when you invite a user.
- You can check whether the invitation succeeded or failed.
- You cannot check whether the user you invited accepts/declines the invitation.
In order for an event to be called, the message sending/receiving method must be called.
Example
Backend.Match.OnMatchMakingRoomInvite = (MatchMakingInteractionEventArgs args) => {
// TODO
};
Argument cases
When the user invitation message is sent successfully
ErrInfo : ErrorInfo.Success
When you invite a user without creating a waiting room
ErrInfo : ErrorInfo.Match_Making_NotJoinedRoom
Reason : You are not joined room.
When the user you invited is not connected to the matching server
ErrInfo : ErrorInfo.Match_Making_NotFoundGamer
Reason : Not found 'nickName' gamer.
When you invite a user who is already in the same room or a different room
ErrInfo : Match_Making_AlreadyJoinedRoom
Reason : 'nickName' Gamer already joined the another room.