mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Starting Leaderboard docs
This commit is contained in:
parent
1c3e9fb598
commit
5b5014744a
1 changed files with 14 additions and 3 deletions
|
@ -12,10 +12,10 @@ var LeaderboardScore = require('./LeaderboardScore');
|
|||
* @classdesc
|
||||
* [description]
|
||||
*
|
||||
* @class FacebookInstantGamesPlugin
|
||||
* @memberOf Phaser
|
||||
* @class Leaderboard
|
||||
* @memberOf Phaser.Boot.FacebookInstantGamesPlugin
|
||||
* @constructor
|
||||
* @since 3.12.0
|
||||
* @since 3.13.0
|
||||
*/
|
||||
var Leaderboard = new Class({
|
||||
|
||||
|
@ -27,14 +27,25 @@ var Leaderboard = new Class({
|
|||
{
|
||||
EventEmitter.call(this);
|
||||
|
||||
/**
|
||||
* A reference to the Facebook Instant Games Plugin.
|
||||
*
|
||||
* @name Phaser.Boot.FacebookInstantGamesPlugin#plugin
|
||||
* @type {Phaser.Boot.FacebookInstantGamesPlugin}
|
||||
* @since 3.13.0
|
||||
*/
|
||||
this.plugin = plugin;
|
||||
|
||||
this.ref = data;
|
||||
|
||||
this.name = data.getName();
|
||||
|
||||
this.contextID = data.getContextID();
|
||||
|
||||
this.entryCount = 0;
|
||||
|
||||
this.playerScore = null;
|
||||
|
||||
this.scores = [];
|
||||
|
||||
this.getEntryCount();
|
||||
|
|
Loading…
Reference in a new issue