Difference between revisions of "SDK 6.3/PAWN/Leaderboard"

From WowWiki
Jump to navigation Jump to search
(Official WOWCube SDK 6.3 documentation (automated publish from SDK headers))
(Fix ROBODoc typo parsing (LB_getInfo/LB_getScore restored), detailed Scramble+Splashscreen (WowBot))
Line 19: Line 19:
 
:* wholeUserListCount - total users count
 
:* wholeUserListCount - total users count
  
See also: LB_getInfo()
+
See also: [[#LB_getInfo|LB_getInfo()]]
  
 
History:
 
History:
 
: v5.0 - added
 
: v5.0 - added
 +
 +
==Functions==
 +
 +
===LB_getInfo===
 +
Syntax:
 +
native LB_getInfo(info[LB_INFO]);
 +
 +
Description:
 +
: Get leaderboard description.
 +
: Players score and achievements can be saved and shared via mobile
 +
: application and WOWCube Entertainment System servers. This function
 +
: provides synced information necessary to display points table.
 +
: Outputs
 +
:* info - structure describing leaderboard
 +
 +
Return values:
 +
: Error code:
 +
: * 0 - success
 +
: * -1 - incorrect arguments count
 +
: * -2 - leaderboard is not synced
 +
: * -3 - fail to fill output structure
 +
 +
See also: [[#LB_INFO|LB_INFO]], [[#LB_getScore|LB_getScore()]]
 +
 +
===LB_getScore===
 +
Syntax:
 +
native LB_getScore(leadTableBin[], size = sizeof(leadTableBin));
 +
 +
Description:
 +
: Get best results data data.
 +
: Players score and achievements can be saved and shared via mobile
 +
: application and WOWCube Entertainment System servers. This function
 +
: provides best results table data.
 +
 +
Arguments:
 +
: ''size''
 +
:: how many results to get
 +
: Outputs
 +
: ''leadTableBin''
 +
:: TBD, should be structure with name and score
 +
 +
Return values:
 +
: Error code:
 +
: * 0 - success
 +
: * -1 - incorrect arguments count
 +
: * -2 - leaderboard is not synced
 +
: * -3 - fail to fill output structure
 +
 +
See also: [[#LB_getInfo|LB_getInfo()]]
 +
 +
History:
 +
: v5.0 - align error codes with LB_getInfo.
  
 
[[Category:SDK 6.3]]
 
[[Category:SDK 6.3]]
 
[[Category:PAWN API]]
 
[[Category:PAWN API]]

Revision as of 09:38, 26 July 2026

Official WOWCube SDK documentation. SDK 6.3, PAWN API. Generated from the canonical SDK headers — do not edit by hand; regenerate from source.

SDK 6.3 · PAWN API: Core · Graphics · Topology · Sound · Motion Sensor · Leaderboard · Splash Screen · Physics · Network · Save · Scramble · Logging
C++: Native API · Application · GFX Engine  ·  Rust: Rust API (experimental)  ·  Changelog

SDK 6.3 · PAWN / Leaderboard

Data structures

LB_INFO

Syntax:

#define LB_INFO [.leadCount, .selfPosition, .selfScore, .wholeUserListCount]

Description:

Array with named fields with various leaderboard information.
Fields:
  • leadCount - how many best results there are available to display
  • selfPosition - place which current user takes
  • selfScore - current users score
  • wholeUserListCount - total users count

See also: LB_getInfo()

History:

v5.0 - added

Functions

LB_getInfo

Syntax:

native LB_getInfo(info[LB_INFO]);

Description:

Get leaderboard description.
Players score and achievements can be saved and shared via mobile
application and WOWCube Entertainment System servers. This function
provides synced information necessary to display points table.
Outputs
  • info - structure describing leaderboard

Return values:

Error code:
* 0 - success
* -1 - incorrect arguments count
* -2 - leaderboard is not synced
* -3 - fail to fill output structure

See also: LB_INFO, LB_getScore()

LB_getScore

Syntax:

native LB_getScore(leadTableBin[], size = sizeof(leadTableBin));

Description:

Get best results data data.
Players score and achievements can be saved and shared via mobile
application and WOWCube Entertainment System servers. This function
provides best results table data.

Arguments:

size
how many results to get
Outputs
leadTableBin
TBD, should be structure with name and score

Return values:

Error code:
* 0 - success
* -1 - incorrect arguments count
* -2 - leaderboard is not synced
* -3 - fail to fill output structure

See also: LB_getInfo()

History:

v5.0 - align error codes with LB_getInfo.