Nakama C++ Client SDK 2.5.1
Client for Nakama Server
NLeaderboardRecord Struct Reference

Represents a complete leaderboard record with all scores and associated metadata. More...

#include <NLeaderboardRecord.h>

Public Attributes

std::string leaderboardId
 The ID of the leaderboard this score belongs to. More...
 
std::string ownerId
 The ID of the score owner, usually a user or group. More...
 
std::string username
 The username of the score owner, if the owner is a user. More...
 
int64_t score = 0
 The score value. More...
 
int64_t subscore = 0
 An optional subscore value. More...
 
int32_t numScore = 0
 The number of submissions to this score record. More...
 
uint32_t maxNumScore = 0
 The maximum number of score updates allowed by the owner. More...
 
std::string metadata
 Metadata. More...
 
NTimestamp createTime = 0
 The UNIX time when the leaderboard record was created. More...
 
NTimestamp updateTime = 0
 The UNIX time when the leaderboard record was updated. More...
 
NTimestamp expiryTime = 0
 The UNIX time when the leaderboard record expires. More...
 
int64_t rank = 0
 The rank of this record. More...
 

Detailed Description

Represents a complete leaderboard record with all scores and associated metadata.

Member Data Documentation

◆ createTime

NTimestamp NLeaderboardRecord::createTime = 0

The UNIX time when the leaderboard record was created.

◆ expiryTime

NTimestamp NLeaderboardRecord::expiryTime = 0

The UNIX time when the leaderboard record expires.

◆ leaderboardId

std::string NLeaderboardRecord::leaderboardId

The ID of the leaderboard this score belongs to.

◆ maxNumScore

uint32_t NLeaderboardRecord::maxNumScore = 0

The maximum number of score updates allowed by the owner.

◆ metadata

std::string NLeaderboardRecord::metadata

Metadata.

◆ numScore

int32_t NLeaderboardRecord::numScore = 0

The number of submissions to this score record.

◆ ownerId

std::string NLeaderboardRecord::ownerId

The ID of the score owner, usually a user or group.

◆ rank

int64_t NLeaderboardRecord::rank = 0

The rank of this record.

◆ score

int64_t NLeaderboardRecord::score = 0

The score value.

◆ subscore

int64_t NLeaderboardRecord::subscore = 0

An optional subscore value.

◆ updateTime

NTimestamp NLeaderboardRecord::updateTime = 0

The UNIX time when the leaderboard record was updated.

◆ username

std::string NLeaderboardRecord::username

The username of the score owner, if the owner is a user.


The documentation for this struct was generated from the following file: