Skip to content

Matchmake Referee Protocol

Yannik Marchand edited this page Feb 10, 2022 · 22 revisions

NEX Protocols > Matchmake Referee (120)

Games that use libeagle use a customized matchmake referee protocol.

The following games have additional methods in the matchmake referee protocol:

The remainder of this page describe the standard matchmake referee protocol.

Method ID Method Name
1 StartRound
2 GetStartRoundParam
3 EndRound
4 EndRoundWithoutReport
5 GetRoundParticipants
6 GetNotSummarizedRound
7 GetRound
8 GetStatsPrimary
9 GetStatsPrimaries
10 GetStatsAll
11 CreateStats
12 GetOrCreateStats
13 ResetStats

(1) StartRound

  • Raises Core::InvalidArgument if the list of pids is empty.
  • Raises MatchmakeReferee::NotParticipatedGathering if the gathering does not exist or at least one of the pids is not a participant of the gathering.

Request

Type Name
MatchmakeRefereeStartRoundParam param

Response

Type Name
Uint64 roundId

(2) GetStartRoundParam

  • Raises MatchmakeReferee::RoundNotFound if the round id is invalid.

Request

Type Name
Uint64 roundId

Response

Type Name
MatchmakeRefereeStartRoundParam param

(3) EndRound

Request

Type Name
MatchmakeRefereeEndRoundParam endRoundParam

Response

This method does not return anything.

(4) EndRoundWithoutReport

Request

Type Name
Uint64 roundId

Response

This method does not return anything.

(5) GetRoundParticipants

Request

Type Name
Uint64 roundId

Response

Type Name
List<Uint64> pids

(6) GetNotSummarizedRound

Request

This method does not take any parameters.

Response

Type Name
List<MatchmakeRefereeRound> rounds

(7) GetRound

Request

Type Name
Uint64 roundId

Response

Type Name
MatchmakeRefereeRound round

(8) GetStatsPrimary

Request

Type Name
MatchmakeRefereeStatsTarget target

Response

Type Name
MatchmakeRefereeStats stats

(9) GetStatsPrimaries

Request

Type Name
List<MatchmakeRefereeStatsTarget> targets

Response

Type Name
List<MatchmakeRefereeStats> stats
List<Result> results

(10) GetStatsAll

Request

Type Name
MatchmakeRefereeStatsTarget target

Response

Type Name
List<MatchmakeRefereeStats> stats

(11) CreateStats

Request

Type Name
MatchmakeRefereeStatsInitParam param

Response

This method does not return anything.

(12) GetOrCreateStats

Request

Type Name
MatchmakeRefereeStatsInitParam param

Response

Type Name
MatchmakeRefereeStats stats

(13) ResetStats

Request

This method does not take any parameters.

Response

This method does not return anything.

Types

MatchmakeRefereeEndRoundParam (Structure)

Type Name
Uint64 roundId
List<MatchmakeRefereePersonalRoundResult> personalRoundResults

MatchmakeRefereeRound (Structure)

Type Name
Uint64 roundId
Uint32 gid
Uint32 state
Uint32 personalDataCategory
List<MatchmakeRefereePersonalRoundResult> normalizedPersonalRoundResults

MatchmakeRefereeStats (Structure)

Type Name
Uint64 uniqueId
Uint32 category
PID pid
Uint32 recentDisconnection
Uint32 recentViolation
Uint32 recentMismatch
Uint32 recentWin
Uint32 recentLoss
Uint32 recentDraw
Uint32 totalDisconnect
Uint32 totalViolation
Uint32 totalMismatch
Uint32 totalWin
Uint32 totalLoss
Uint32 totalDraw
Uint32 ratingValue

MatchmakeRefereeStartRoundParam (Structure)

Type Name
Uint32 personalDataCategory
Uint32 gid
List<PID> pids

MatchmakeRefereeStatsTarget (Structure)

Type Name
PID pid
Uint32 category

MatchmakeRefereeStatsInitParam (Structure)

Type Name
Uint32 category
Uint32 initialRatingValue

MatchmakeRefereePersonalRoundResult (Structure)

Type Name
PID pid
Uint32 personalRoundResultFlag
Uint32 roundWinLoss
Sint32 ratingValueChange
qBuffer buffer
Clone this wiki locally