Brought up to date with the private repository (feea4c7)

This commit is contained in:
S committed 2026-10-14 20:57:33 +03:00
1 parent 1aa738d692
commit 1b1df1ae48
7925 files changed
+2617237 -20

No files matched your search

@@ -0,0 +1,79 @@
package adoptAPet
{
public class AdoptAPetData
{
public static var LAST_INV_ID:int = 0;
private var _invId:int;
private var _defId:int;
private var _time:Number;
private var _hasBeenSeen:Boolean;
public function AdoptAPetData(param1:Object)
{
super();
if(param1 is int)
{
_invId = ++LAST_INV_ID;
_defId = param1 as int;
_time = new Date().valueOf() / 1000;
_hasBeenSeen = false;
}
else
{
_invId = param1.invId;
_defId = param1.defId;
_time = param1.ts;
_hasBeenSeen = param1.hasSeen;
if(!("skipInvIdUpdate" in param1))
{
if(_invId > LAST_INV_ID)
{
LAST_INV_ID = _invId;
}
}
}
}
public static function defaultAdoptAPetData(param1:int, param2:int) : Object
{
return {
"invId":param2,
"defId":param1,
"ts":0,
"hasSeen":true,
"skipInvIdUpdate":true
};
}
public function get invId() : int
{
return _invId;
}
public function get defId() : int
{
return _defId;
}
public function get time() : Number
{
return _time;
}
public function get hasBeenSeen() : Boolean
{
return _hasBeenSeen;
}
public function set hasBeenSeen(param1:Boolean) : void
{
_hasBeenSeen = param1;
}
}
}