leaderboard.inc
leaderboard.inc
CPP1/****s* PawnLibs/leaderboard/LB_INFO2 * Summary3 * Array with named fields with various leaderboard information.4 * Synopsis5 */6#define LB_INFO [.leadCount, .selfPosition, .selfScore, .wholeUserListCount]7/*8 * Description9 * Fields:10 * * leadCount - how many best results there are available to display11 * * selfPosition - place which current user takes12 * * selfScore - current users score13 * * wholeUserListCount - total users count14 * See also15 * * LB_getInfo()16 * History17 * * v5.0 - added18 ******/1920/*****n* PawnLibs/leaderboard/LB_getInfo21 * Summary22 * Get leaderboard description.23 * Synopsis24 */25native LB_getInfo(info[LB_INFO]);26/*27 * Description28 * Players score and achievements can be saved and shared via mobile29 * application and WOWCube Entertainment System servers. This function30 * provides synced information necessary to display points table.31 * Outputs32 * * info - structure describing leaderboard33 * Return value34 * Error code:35 * * 0 - success36 * * -1 - incorrect arguments count37 * * -2 - leaderboard is not synced38 * * -3 - fail to fill output structure39 * See also40 * * LB_INFO41 * * LB_getScore()42 ******/4344/*****n* PawnLibs/leaderboard/LB_getScore45 * Summary46 * Get best results data data.47 * Synopsis48 */49native LB_getScore(leadTableBin[], size = sizeof(leadTableBin));50/*51 * Description52 * Players score and achievements can be saved and shared via mobile53 * application and WOWCube Entertainment System servers. This function54 * provides best results table data.55 * Inputs56 * * size - how many results to get57 * Outputs58 * * leadTableBin - TBD, should be structure with name and score59 * Return value60 * Error code:61 * * 0 - success62 * * -1 - incorrect arguments count63 * * -2 - leaderboard is not synced64 * * -3 - fail to fill output structure65 * See also66 * * LB_getInfo()67 * History68 * * v5.0 - align error codes with LB_getInfo.69 ******/7071
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.