qBool GetCachedTopXRanking( ProtocolCallContext * pContext, qUnsignedInt32 category, const RankingOrderParam & orderParam, RankingCachedResult * pResult );
Name | Description | |
---|---|---|
in | pContext | The call context. |
in | category | Category. |
in | orderParam | Parameters for calculating the order. |
out | pResult | The obtained result of rankings. |
Value | Description |
---|---|
true |
RMC call initialization succeeded. |
false |
Failure. |
Gets the cached top ranking list up to the predefined size.
Gets a ranking list for the specified category.
This function gets rankings that are cached on the server for up to five minutes. Because of this, the access count is recorded separately from the other ranking functions for the guideline check. The offset and length of RankingOrderParam
are ignored. The offset value is set to 0
and the length uses the value configured in NMAS. Initially, a ranking with 20 scores can be retrieved. A different cache is built for each combination of category and RankingOrderParam
. Up to a maximum of 200 caches can be used across a game.
Rankings for communities that are user-generated or that have an uncertain number of users may increase. They do not benefit greatly from caching. Refrain from using this function with those communities.
CONFIDENTIAL