mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 09:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,101 @@
|
||||
package it.gotoandplay.smartfoxserver.data
|
||||
{
|
||||
public class User
|
||||
{
|
||||
|
||||
private var id:int;
|
||||
|
||||
private var name:String;
|
||||
|
||||
private var variables:Array;
|
||||
|
||||
private var isSpec:Boolean;
|
||||
|
||||
private var isMod:Boolean;
|
||||
|
||||
private var pId:int;
|
||||
|
||||
public function User(param1:int, param2:String)
|
||||
{
|
||||
super();
|
||||
this.id = param1;
|
||||
this.name = param2;
|
||||
this.variables = [];
|
||||
this.isSpec = false;
|
||||
this.isMod = false;
|
||||
}
|
||||
|
||||
public function getId() : int
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public function getName() : String
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public function getVariable(param1:String) : *
|
||||
{
|
||||
return this.variables[param1];
|
||||
}
|
||||
|
||||
public function getVariables() : Array
|
||||
{
|
||||
return this.variables;
|
||||
}
|
||||
|
||||
public function setVariables(param1:Object) : void
|
||||
{
|
||||
var _loc2_:* = undefined;
|
||||
for(var _loc3_:String in param1)
|
||||
{
|
||||
_loc2_ = param1[_loc3_];
|
||||
if(_loc2_ != null)
|
||||
{
|
||||
this.variables[_loc3_] = _loc2_;
|
||||
}
|
||||
else
|
||||
{
|
||||
delete this.variables[_loc3_];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function clearVariables() : void
|
||||
{
|
||||
this.variables = [];
|
||||
}
|
||||
|
||||
public function setIsSpectator(param1:Boolean) : void
|
||||
{
|
||||
this.isSpec = param1;
|
||||
}
|
||||
|
||||
public function isSpectator() : Boolean
|
||||
{
|
||||
return this.isSpec;
|
||||
}
|
||||
|
||||
public function setModerator(param1:Boolean) : void
|
||||
{
|
||||
this.isMod = param1;
|
||||
}
|
||||
|
||||
public function isModerator() : Boolean
|
||||
{
|
||||
return this.isMod;
|
||||
}
|
||||
|
||||
public function getPlayerId() : int
|
||||
{
|
||||
return this.pId;
|
||||
}
|
||||
|
||||
public function setPlayerId(param1:int) : void
|
||||
{
|
||||
this.pId = param1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user