gpg:: ScorePage
#include <score_page.h>
一个允许您访问得分数据的单一数据结构。
摘要
数据包括排行榜 ID、开始时间、时间范围、集合、上一个得分页面令牌、下一个得分页面令牌以及所有得分条目的矢量。
构造函数和析构函数 |
|
---|---|
ScorePage()
|
|
ScorePage(std::shared_ptr< const ScorePageImpl > impl)
显式构造函数。
|
|
ScorePage(const ScorePage & copy_from)
复制用于将现有得分页面复制到新得分页面的构造函数。
|
|
ScorePage(ScorePage && move_from)
用于将现有分数页面移到新分数页面的构造函数。
|
|
~ScorePage()
|
公共函数 |
|
---|---|
Collection() const
|
返回排行榜是 PUBLIC 还是 SOCIAL 的。
|
Entries() const
|
const std::vector< ScorePage::Entry > &
所有得分条目的向量。
|
HasNextScorePage() const
|
bool
如果记分板有后续得分页面,则该属性有效。
|
HasPreviousScorePage() const
|
bool
如果记分板有之前的得分页面,则有效。
|
LeaderboardId() const
|
const std::string &
返回 Google Play Developer Console 事先生成的唯一字符串。
|
NextScorePageToken() const
|
返回后续页面的得分页令牌。
|
PreviousScorePageToken() const
|
返回上一页的得分页令牌。
|
Start() const
|
返回排行榜最初是查询最高得分还是接近当前玩家的得分。
|
TimeSpan() const
|
返回排行榜的时间跨度。
|
Valid() const
|
bool
如果此
ScorePage 中填充了数据,则返回 true。 |
operator=(const ScorePage & copy_from)
|
用于从另一个分数页面分配此分数页面值的赋值运算符。
|
operator=(ScorePage && move_from)
|
用于从另一个分数页面分配此分数页面值的赋值运算符。
|
类 |
|
---|---|
gpg:: |
用于在分数页面上创建条目的类。 |
gpg:: |
一种数据结构,属于近不透明类型,表示对 ScorePage 的查询(或为空)。 |
公共函数
HasNextScorePage
bool HasNextScorePage() const
如果记分板有后续得分页面,则该属性有效。
HasPreviousScorePage
bool HasPreviousScorePage() const
如果记分板有之前的得分页面,则有效。
LeaderboardId
const std::string & LeaderboardId() const
返回 Google Play Developer Console 事先生成的唯一字符串。
可用它来指代游戏客户端中的排行榜。只有当 Leaderboard::Valid() 返回 true 时,才能调用此方法。