49 lines
1.3 KiB
ActionScript
49 lines
1.3 KiB
ActionScript
package Playtomic
|
|
{
|
|
public final class PlayerScore
|
|
{
|
|
|
|
public var Name:String;
|
|
|
|
public var FBUserId:String;
|
|
|
|
public var Points:Number;
|
|
|
|
public var Rank:int;
|
|
|
|
public var Website:String;
|
|
|
|
public var SDate:Date;
|
|
|
|
public var RDate:String;
|
|
|
|
public var CustomData:Object = {};
|
|
|
|
public var SubmittedOrBest:Boolean = false;
|
|
|
|
public function PlayerScore(param1:String = "", param2:int = 0)
|
|
{
|
|
super();
|
|
this.Name = param1;
|
|
this.Points = param2;
|
|
}
|
|
|
|
public function toString() : String
|
|
{
|
|
return "Playtomic.PlayerScore:" + "\nRank: " + this.Rank + "\nName: " + this.Name + "\nPoints: " + this.Points;
|
|
}
|
|
|
|
public function toStringAll() : String
|
|
{
|
|
var _loc2_:String = null;
|
|
var _loc1_:String = "Playtomic.PlayerScore:" + "\nRank: " + this.Rank + "\nName: " + this.Name + "\nFBUserId: " + this.FBUserId + "\nPoints: " + this.Points + "\nWebsite: " + this.Website + "\nSDate: " + this.SDate + "\nRDate: " + this.RDate + "\nCustomData: ";
|
|
for each(_loc2_ in this.CustomData)
|
|
{
|
|
_loc1_ += "\n " + _loc2_ + ": " + this.CustomData[_loc2_];
|
|
}
|
|
return _loc1_;
|
|
}
|
|
}
|
|
}
|
|
|