Online Leaderboard library.

A library for online leaderboards (highscore lists).

File:
olb.lib
Version:
1.0
Author:
John Master

Contents

Details
Sub routines


Details

All leaderboards are stored on the naalaa server without any guarantees what so ever. If you missuse the library or spam the server, I'll be mad at you.


Subroutines

Name
Parameters
Brief description
procedure
OLB_SetIdentifier
gameId$
Set game identifier.
procedure
OLB_SetNumScores
numScores
Set number of scores.
function
OLB_ClearScores?[]
Clear scores.
function
OLB_GetScores?[]
Get scores.
function
OLB_SubmitScore?[]
name$, score
Submit score.


Subroutine documentation

procedure OLB_SetIdentifier ( gameId$ )

Set identifier for game. This function MUST be called before any other.

Parameter
Mode
Description
gameId
In
Game identifier.

[ Back ]


procedure OLB_SetNumScores ( numScores )

Set number of scores, default is 10.

Parameter
Mode
Description
numScores
In
Number of scores.

[ Back ]


function OLB_ClearScores?[] ( )

Clear list of scores. This is not something that the players should be able to do.

Return value
List of scores as an object array with the fields 'name' and 'score'.

[ Back ]


function OLB_GetScores?[] ( )

Return value
List of scores as an object array with the fields 'name' and 'score'.

[ Back ]


function OLB_SubmitScore?[] ( name$, score )

Submit name and score to list.

Return value
List of scores as an object array with the fields 'name' and 'score'.

[ Back ]


Generated with NLDoc 20141004.