Edit

PFLeaderboardsEntityLeaderboardEntry

PFLeaderboardsEntityLeaderboardEntry data model. Individual rank of an entity in a leaderboard.

Syntax

typedef struct PFLeaderboardsEntityLeaderboardEntry {  
    const char* displayName;  
    PFEntityKey const* entity;  
    time_t lastUpdated;  
    const char* metadata;  
    int32_t rank;  
    const char* const* scores;  
    uint32_t scoresCount;  
} PFLeaderboardsEntityLeaderboardEntry;  

Members

displayName   const char*
is null-terminated

(Optional) Entity's display name.

entity   PFEntityKey const*
may be nullptr

(Optional) Entity identifier.

lastUpdated   time_t

The time at which the last update to the entry was recorded on the server.

metadata   const char*
is null-terminated

(Optional) An opaque blob of data stored on the leaderboard entry. Note that the metadata is not used for ranking purposes.

rank   int32_t

Position on the leaderboard.

scores   const char* const*
may be nullptr

(Optional) Scores for the entry.

scoresCount   uint32_t

Count of scores

Requirements

Header: PFLeaderboardsTypes.h

See also

PFLeaderboardsTypes members