2018-07-27 10:19:41 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2018-08-07 00:25:32 +00:00
|
|
|
var LeaderboardScore = function (entry)
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
score: entry.getScore(),
|
|
|
|
scoreFormatted: entry.getFormattedScore(),
|
|
|
|
timestamp: entry.getTimestamp(),
|
|
|
|
rank: entry.getRank(),
|
|
|
|
data: entry.getExtraData(),
|
|
|
|
playerName: entry.getPlayer().getName(),
|
|
|
|
playerPhotoURL: entry.getPlayer().getPhoto(),
|
|
|
|
playerID: entry.getPlayer().getID()
|
|
|
|
};
|
|
|
|
};
|
2018-07-27 10:19:41 +00:00
|
|
|
|
|
|
|
module.exports = LeaderboardScore;
|