Skip to content

Player Stats Protocol

Yannik Marchand edited this page Jan 27, 2021 · 1 revision

NEX Protocols > Player Stats (55)

Method ID Method Name
1 WriteStats
2 ReadStatsByPlayers
3 ReadLeaderboardsNearPlayer
4 ReadLeaderboardsByRank
5 ReadLeaderboardsByPlayers
6 ReadStatboardHistory
7 ReadLeaderboardHistory
8 ReadStatboardHistoryAggregated
9 GetStatboardNextPurgeDate
10 ReadLeaderboardsNearPlayer2
11 ReadLeaderboardsByRank2
12 ReadLeaderboardsByPlayers2
13 ReadPopulationStats

(1) WriteStats

Request

Type Name
List<PlayerStatUpdate> playerStatUpdates

Response

This method does not return anything.

(2) ReadStatsByPlayers

Request

Type Name
List<Uint32> playerPIDs
List<StatboardQuery> queries

Response

Type Name
List<StatboardResult> results

(3) ReadLeaderboardsNearPlayer

Request

Type Name
Uint32 playerPID
Uint32 count
List<LeaderboardQuery> queries

Response

Type Name
List<LeaderboardResult> results

(4) ReadLeaderboardsByRank

Request

Type Name
Uint32 startingRank
Uint32 count
List<LeaderboardQuery> queries

Response

Type Name
List<LeaderboardResult> results

(5) ReadLeaderboardsByPlayers

Request

Type Name
List<Uint32> playerPIDs
List<LeaderboardQuery> queries

Response

Type Name
List<LeaderboardResult> results

(6) ReadStatboardHistory

Request

Type Name
List<StatboardHistoryQuery> queries

Response

Type Name
List<StatboardResult> results

(7) ReadLeaderboardHistory

Request

Type Name
List<LeaderboardHistoryQuery> queries

Response

Type Name
List<LeaderboardResult> results

(8) ReadStatboardHistoryAggregated

Request

Type Name
List<StatboardHistoryAggregatedQuery> queries

Response

Type Name
List<StatboardResult> results

(9) GetStatboardNextPurgeDate

Request

Type Name
Uint32 boardID
Uint32 resetFrequency

Response

Type Name
DateTime purgeDate

(10) ReadLeaderboardsNearPlayer2

Request

Type Name
Uint32 playerPID
Uint32 count
List<LeaderboardQuery2> queries

Response

Type Name
List<LeaderboardResult> results

(11) ReadLeaderboardsByRank2

Request

Type Name
Uint32 startingRank
Uint32 count
List<LeaderboardQuery2> queries

Response

Type Name
List<LeaderboardResult> results

(12) ReadLeaderboardsByPlayers2

Request

Type Name
List<LeaderboardQuery2> queries

Response

Type Name
List<LeaderboardResult> results

(13) ReadPopulationStats

Request

Type Name
List<PopulationStatQuery> queries

Response

Type Name
List<PopulationStatResult> results

Types

PlayerStatUpdate (Structure)

Type Name
Uint32 m_boardID
List<Uint32> m_contextIDs
List<PropertyVariant> m_stats

StatboardQuery (Structure)

Type Name
Uint32 m_boardID
List<Uint32> m_contextIDs
Uint32 m_resetFrequency
List<Uint32> m_statIDs
List<PlayerStatSortCriteria> m_sortCriterias

LeaderboardQuery (Structure)

Type Name
Uint32 m_boardID
Uint32 m_contextID
Uint32 m_resetFrequency
List<Uint32> m_statIDs

LeaderboardQuery2 (Structure)

Type Name
Uint32 m_boardID
Uint32 m_contextID
Uint32 m_resetFrequency
List<Uint32> m_statIDs
List<Uint32> m_estimatedPIDs

StatboardResult (Structure)

Type Name
Uint32 m_boardID
Uint32 m_contextID
Uint32 m_resetFrequency
List<PlayerStatSet> m_playerStatSets
List<PropertyVariant> m_defaultStatValues

LeaderboardResult (Structure)

Type Name
Uint32 m_boardID
Uint32 m_contextID
Uint32 m_resetFrequency
Uint32 m_leaderboardTotalPlayerCount
List<PlayerRank> m_playerRanks

StatboardHistoryQuery (Structure)

Type Name
List<Uint32> m_playerPIDs
Uint32 m_boardID
List<Uint32> m_contextIDs
List<Uint32> m_statIDs
ResultRange m_resultRange
List<PropertyVariant> m_playerStats
List<DateRange> m_dateRanges
List<PlayerStatSortCriteria> m_sortCriterias

StatboardHistoryAggregatedQuery (Structure)

Type Name
List<Uint32> m_playerPIDs
Uint32 m_boardID
List<Uint32> m_contextIDs
List<Uint32> m_statIDs
ResultRange m_resultRange
List<PropertyVariant> m_playerStats
List<DateRange> m_dateRanges
List<PlayerStatSortCriteria> m_sortCriterias
Uint32 m_filterOption

LeaderboardHistoryQuery (Structure)

Type Name
List<Uint32> m_playerPIDs
Uint32 m_boardID
Uint32 m_contextID
ResultRange m_resultRange
List<DateRange> m_dateRanges
Uint32 m_filterOption

PopulationStatQuery (Structure)

Type Name
Uint32 m_boardID
Uint32 m_contextID
List<Uint32> m_statIDs

PopulationStatResult (Structure)

Type Name
Uint32 m_boardID
Uint32 m_contextID
Uint32 m_statID
Double m_sum
Double m_average
Double m_standardDeviation

PlayerStatSortCriteria (Structure)

Type Name
Uint32 m_sortStatID
Uint32 m_sortOrder

PlayerStatSet (Structure)

Type Name
Uint32 m_playerPID
String m_playerName
DateTime m_submittedTime
List<PropertyVariant> m_stats

PlayerRank (Structure)

Type Name
PlayerStatSet m_playerStatSet
Uint32 m_rankStatus
Uint32 m_rank
Variant m_score

DateRange (Structure)

Type Name
DateTime m_startingDatetime
DateTime m_endingDatetime

PropertyVariant (Structure)

Type Description
Uint32 ID
Variant Value
Clone this wiki locally