ovr_Leaderboard_Get ( const char * leaderboardName ) | |
ovr_Leaderboard_GetEntries ( const char * leaderboardName, int limit, ovrLeaderboardFilterType filter, ovrLeaderboardStartAt startAt ) | |
ovr_Leaderboard_GetEntriesAfterRank ( const char * leaderboardName, int limit, unsigned long long afterRank ) | |
ovr_Leaderboard_GetEntriesByIds ( const char * leaderboardName, int limit, ovrLeaderboardStartAt startAt, ovrID * userIDs, unsigned int userIDLength ) | |
ovr_Leaderboard_GetNextEntries ( const ovrLeaderboardEntryArrayHandle handle ) | |
ovr_Leaderboard_GetPreviousEntries ( const ovrLeaderboardEntryArrayHandle handle ) | |
ovr_Leaderboard_WriteEntry ( const char * leaderboardName, long long score, const void * extraData, unsigned int extraDataLength, bool forceUpdate ) | |
ovr_Leaderboard_WriteEntryWithSupplementaryMetric ( const char * leaderboardName, long long score, long long supplementaryMetric, const void * extraData, unsigned int extraDataLength, bool forceUpdate ) |
ovrRequest ovr_Leaderboard_Get ( const char * leaderboardName ) |
---|
Gets the information for a single leaderboard Parameters
A message with type ovrMessage_Leaderboard_Get will be generated in response.leaderboardName The name of the leaderboard to return. First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardArrayHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardArray(). |
ovrRequest ovr_Leaderboard_GetEntries ( const char * leaderboardName, int limit, ovrLeaderboardFilterType filter, ovrLeaderboardStartAt startAt ) |
---|
Requests a block of leaderboard entries. Parameters
Error codesleaderboardName The name of the leaderboard whose entries to return. limitDefines the maximum number of entries to return. filterBy using ovrLeaderboard_FilterFriends, this allows you to filter the returned values to bidirectional followers. startAtDefines whether to center the query on the user or start at the top of the leaderboard.
A message with type ovrMessage_Leaderboard_GetEntries will be generated in response. First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardEntryArray(). |
ovrRequest ovr_Leaderboard_GetEntriesAfterRank ( const char * leaderboardName, int limit, unsigned long long afterRank ) |
---|
Requests a block of leaderboard entries. Parameters
A message with type ovrMessage_Leaderboard_GetEntriesAfterRank will be generated in response.leaderboardName The name of the leaderboard. limitThe maximum number of entries to return. afterRankThe position after which to start. For example, 10 returns leaderboard results starting with the 11th user. First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardEntryArray(). |
ovrRequest ovr_Leaderboard_GetEntriesByIds ( const char * leaderboardName, int limit, ovrLeaderboardStartAt startAt, ovrID * userIDs, unsigned int userIDLength ) |
---|
Requests a block of leaderboard entries. Will return only entries matching the user IDs passed in. Parameters
A message with type ovrMessage_Leaderboard_GetEntriesByIds will be generated in response.leaderboardName The name of the leaderboard whose entries to return. limitDefines the maximum number of entries to return. startAtDefines whether to center the query on the user or start at the top of the leaderboard. If this is ovrLeaderboard_StartAtCenteredOnViewer or ovrLeaderboard_StartAtCenteredOnViewerOrTop, then the current user's ID will be automatically added to the query. userIDsDefines a list of user ids to get entries for. userIDLengthThe number of user IDs provided. First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardEntryArray(). |
ovrRequest ovr_Leaderboard_GetNextEntries ( const ovrLeaderboardEntryArrayHandle handle ) |
---|
Requests the next block of leaderboard entries. Parameters
A message with type ovrMessage_Leaderboard_GetNextEntries will be generated in response.handle The return value from ovr_Message_GetLeaderboardEntryArray(). First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardEntryArray(). |
ovrRequest ovr_Leaderboard_GetNextLeaderboardArrayPage ( ovrLeaderboardArrayHandle handle ) |
---|
Get the next page of entries A message with type ovrMessage_Leaderboard_GetNextLeaderboardArrayPage will be generated in response. First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardArrayHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardArray(). |
ovrRequest ovr_Leaderboard_GetPreviousEntries ( const ovrLeaderboardEntryArrayHandle handle ) |
---|
Requests the previous block of leaderboard entries. Parameters
A message with type ovrMessage_Leaderboard_GetPreviousEntries will be generated in response.handle The return value from ovr_Message_GetLeaderboardEntryArray(). First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardEntryArray(). |
ovrRequest ovr_Leaderboard_WriteEntry ( const char * leaderboardName, long long score, const void * extraData, unsigned int extraDataLength, bool forceUpdate ) |
---|
Writes a single entry to a leaderboard. Parameters
Error codesleaderboardName The leaderboard for which to write the entry. scoreThe score to write. extraDataA 2KB custom data field that is associated with the leaderboard entry. This can be a game replay or anything that provides more detail about the entry to the viewer. extraDataLengthThe length of the extra data. forceUpdateIf true, the score always updates. This happens even if it is not the user's best score.
A message with type ovrMessage_Leaderboard_WriteEntry will be generated in response. First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardUpdateStatusHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardUpdateStatus(). |
ovrRequest ovr_Leaderboard_WriteEntryWithSupplementaryMetric ( const char * leaderboardName, long long score, long long supplementaryMetric, const void * extraData, unsigned int extraDataLength, bool forceUpdate ) |
---|
Writes a single entry to a leaderboard, can include supplementary metrics Parameters
Error codesleaderboardName The leaderboard for which to write the entry. scoreThe score to write. supplementaryMetricA metric that can be used for tiebreakers. extraDataA 2KB custom data field that is associated with the leaderboard entry. This can be a game replay or anything that provides more detail about the entry to the viewer. extraDataLengthThe length of the extra data. forceUpdateIf true, the score always updates. This happens ecen if it is not the user's best score.
A message with type ovrMessage_Leaderboard_WriteEntryWithSupplementaryMetric will be generated in response. First call ovr_Message_IsError() to check if an error occurred. If no error occurred, the message will contain a payload of type ovrLeaderboardUpdateStatusHandle. Extract the payload from the message handle with ovr_Message_GetLeaderboardUpdateStatus(). |