new Database()
DO NOT invoke this constructor directly. Only internal objects and functions are allowed to instantiate Database objects.
Methods
-
game(index) → {Game}
-
Return the game corresponding to the given index.
Parameters:
Name Type Description index
number Between 0 inclusive and Database#gameCount exclusive.
Returns:
Game -
gameCount() → {number}
-
Number of games in the database.
Returns:
number