SDK 6.3/C++/Leaderboard
Jump to navigation
Jump to search
Official WOWCube SDK documentation. SDK 6.3, C++ (WebAssembly) API. Signatures are extracted from the canonical SDK headers shipped with the WOWCube Development Kit; the headers remain authoritative.
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 · C++ Native API / Leaderboard
Scores and rankings synced via the companion app.
Shared types, enums and constants are listed on the Native API overview.
Minimal example
Query the synced points table:
Cubios::LB_info_t info;
LB_getInfo(&info);
LOG_i("my place: %d of %d\n", info.selfPosition, info.wholeUserListCount);
Functions
LB_getInfo
Syntax:
i32_t LB_getInfo(Cubios::LB_info_t* 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
LB_getScore
Syntax:
i32_t LB_getScore(uint8_t* leadTableBin, u32_t bufSize)
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.
Return values:
- Error code:
- * 0 - success
- * -1 - incorrect arguments count
- * -2 - leaderboard is not synced
- * -3 - fail to fill output structure
History:
- v5.0 - align error codes with LB_getInfo.