mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 17: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,946 @@
|
||||
package den
|
||||
{
|
||||
import currency.CombinedCurrencyItem;
|
||||
import diamond.DiamondItem;
|
||||
import diamond.DiamondXtCommManager;
|
||||
import flash.display.Loader;
|
||||
import flash.display.MovieClip;
|
||||
import flash.display.Sprite;
|
||||
import inventory.Iitem;
|
||||
import loader.DenItemHelper;
|
||||
import localization.LocalizationManager;
|
||||
import pet.PetDef;
|
||||
import pet.PetItem;
|
||||
import pet.PetManager;
|
||||
|
||||
public class DenItem implements Iitem
|
||||
{
|
||||
|
||||
public static const SORT_FLOOR:int = 0;
|
||||
|
||||
public static const SORT_WALL:int = 1;
|
||||
|
||||
public static const SORT_FLOORING:int = 2;
|
||||
|
||||
public static const SORT_WALLPAPER:int = 3;
|
||||
|
||||
public static const SORT_AUDIO:int = 4;
|
||||
|
||||
public static const SORT_PLANT:int = 5;
|
||||
|
||||
public static const SORT_TOY:int = 6;
|
||||
|
||||
public static const SORT_PET:int = 99;
|
||||
|
||||
public static const PLACE_CAT_FLOOR:int = 1;
|
||||
|
||||
public static const PLACE_CAT_WALL:int = 2;
|
||||
|
||||
public static const PLACE_CAT_ICONL:int = 3;
|
||||
|
||||
public static const SPECIAL_TYPE_NORMAL:int = 0;
|
||||
|
||||
public static const SPECIAL_TYPE_PORTAL:int = 1;
|
||||
|
||||
public static const SPECIAL_TYPE_EMOTE:int = 2;
|
||||
|
||||
public static const REF_ID_DEN_ITEM:int = 0;
|
||||
|
||||
public static const REF_ID_PET_ITEM:int = 1;
|
||||
|
||||
public static const DEN_PET_LAYER_ID:int = 0;
|
||||
|
||||
public static const DEF_AUDIO_DEF_ID:int = 617;
|
||||
|
||||
public static const DEF_AUDIO_PACKED_ID:uint = 40435715;
|
||||
|
||||
public static const DEF_AUDIO_INVIDX:int = -1;
|
||||
|
||||
public static const DEF_AUDIO_STRMNAME:String = "MusDenDef";
|
||||
|
||||
public static const DEF_AUDIO_VOL:int = 50;
|
||||
|
||||
public static const DEF_DIAMOND_MASTERPIECE_ID:int = 221;
|
||||
|
||||
public static const DEF_MASTERPIECE_ID:int = 2725;
|
||||
|
||||
public static const WIND_SMALL_SIZE:int = 80;
|
||||
|
||||
public static const WIND_MED_SIZE:int = 168;
|
||||
|
||||
public static const WIND_LARGE_SIZE:int = 280;
|
||||
|
||||
private var _currDef:Object;
|
||||
|
||||
private var _refId:int;
|
||||
|
||||
private var _invIdx:int;
|
||||
|
||||
private var _categoryId:int;
|
||||
|
||||
private var _layerId:int;
|
||||
|
||||
private var _name:String;
|
||||
|
||||
private var _isMemberOnly:Boolean;
|
||||
|
||||
private var _version:int;
|
||||
|
||||
private var _version2:int;
|
||||
|
||||
private var _version3:int;
|
||||
|
||||
private var _strmName:String;
|
||||
|
||||
private var _enviroType:int;
|
||||
|
||||
private var _recycleValue:int;
|
||||
|
||||
private var _currencyType:int;
|
||||
|
||||
private var _endTime:uint;
|
||||
|
||||
private var _specialType:int;
|
||||
|
||||
private var _value:int;
|
||||
|
||||
private var _defId:int;
|
||||
|
||||
private var _sortId:int;
|
||||
|
||||
private var _typeCatId:int;
|
||||
|
||||
private var _petType:int;
|
||||
|
||||
private var _isApproved:Boolean;
|
||||
|
||||
private var _uniqueImageId:String;
|
||||
|
||||
private var _uniqueImageCreator:String;
|
||||
|
||||
private var _uniqueImageCreatorDbId:int;
|
||||
|
||||
private var _uniqueImageCreatorUUID:String;
|
||||
|
||||
private var _petTraitDefId:int;
|
||||
|
||||
private var _petToyDefId:int;
|
||||
|
||||
private var _petFoodDefId:int;
|
||||
|
||||
private var _createdTs:Number;
|
||||
|
||||
private var _petItem:PetItem;
|
||||
|
||||
private var _itemStatus:int;
|
||||
|
||||
private var _minigameDefId:int;
|
||||
|
||||
private var _listId:int;
|
||||
|
||||
private var _isIconLoaded:Boolean;
|
||||
|
||||
private var _imageLoadedCallback:Function;
|
||||
|
||||
private var _icon:Sprite;
|
||||
|
||||
private var _iconHelper:DenItemHelper;
|
||||
|
||||
private var _largeIcon:Sprite;
|
||||
|
||||
private var _largeIconHelper:DenItemHelper;
|
||||
|
||||
private var _isShopItem:Boolean;
|
||||
|
||||
private var _listenToMouse:Boolean;
|
||||
|
||||
private var _globalScale:Number = 1;
|
||||
|
||||
private var _setRandomVersion:Boolean;
|
||||
|
||||
private var _combinedCurrencyItem:CombinedCurrencyItem;
|
||||
|
||||
private var _diamondItem:DiamondItem;
|
||||
|
||||
public function DenItem()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function getIconId(param1:int) : int
|
||||
{
|
||||
if(param1 == 0 || param1 == 99 || param1 == 6 || param1 == 5)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if(param1 == 1)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
if(param1 == 2 || param1 == 3 || param1 == 4)
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
return param1 + 1;
|
||||
}
|
||||
|
||||
public static function getInWorldId(param1:int, param2:int) : int
|
||||
{
|
||||
if(param1 == 0 || param1 == 99 || param1 == 6 || param1 == 5)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if(param1 == 1)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
if(param1 == 4)
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
return param2;
|
||||
}
|
||||
|
||||
public function init(param1:int, param2:int = 0, param3:int = 0, param4:int = 0, param5:int = 0, param6:PetItem = null, param7:uint = 0, param8:Boolean = true, param9:String = "", param10:String = "", param11:int = -1, param12:String = "") : void
|
||||
{
|
||||
var _loc13_:PetDef = null;
|
||||
_refId = param5;
|
||||
_invIdx = param2;
|
||||
_defId = param1;
|
||||
_categoryId = param3;
|
||||
_version = param4;
|
||||
_endTime = param7;
|
||||
_isApproved = param8;
|
||||
_uniqueImageId = param9;
|
||||
if(param10.charAt(0) == "#")
|
||||
{
|
||||
_uniqueImageCreator = LocalizationManager.translateIdOnly(int(param10.substr(1)));
|
||||
}
|
||||
else
|
||||
{
|
||||
_uniqueImageCreator = param10;
|
||||
}
|
||||
_uniqueImageCreatorDbId = param11;
|
||||
_uniqueImageCreatorUUID = param12;
|
||||
_diamondItem = DiamondXtCommManager.getDiamondItem(DiamondXtCommManager.getDiamondDefIdByRefId(_defId,1));
|
||||
if(param5 == 1)
|
||||
{
|
||||
_loc13_ = PetManager.getPetDef(_defId);
|
||||
_defId = DenXtCommManager.denItemDefIdForPetDefId(_defId);
|
||||
_layerId = 0;
|
||||
_sortId = 99;
|
||||
_typeCatId = 99;
|
||||
_isMemberOnly = _loc13_.isMember;
|
||||
if(_diamondItem)
|
||||
{
|
||||
_itemStatus = _diamondItem.status;
|
||||
_value = _diamondItem.value;
|
||||
_currencyType = 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
_itemStatus = _loc13_.status;
|
||||
_value = isOnSale ? Math.ceil(_loc13_.cost * 0.5) : _loc13_.cost;
|
||||
_currencyType = 0;
|
||||
}
|
||||
_strmName = "";
|
||||
_name = _loc13_.title;
|
||||
_minigameDefId = 0;
|
||||
_listId = 0;
|
||||
_petType = _loc13_.type;
|
||||
_enviroType = PetManager.getEnviroTypeByPetType(_loc13_.type);
|
||||
_recycleValue = _loc13_.cost * gMainFrame.clientInfo.recyclePercentage;
|
||||
_globalScale = 1;
|
||||
_specialType = 0;
|
||||
_combinedCurrencyItem = null;
|
||||
_currDef = _loc13_;
|
||||
_petItem = param6;
|
||||
if(_petItem)
|
||||
{
|
||||
_petTraitDefId = _petItem.traitDefId;
|
||||
_petToyDefId = _petItem.toyDefId;
|
||||
_petFoodDefId = _petItem.foodDefId;
|
||||
_createdTs = _petItem.createdTs;
|
||||
_version = _petItem.petBits[0];
|
||||
_version2 = _petItem.petBits[1];
|
||||
_version3 = _petItem.petBits[2];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_currDef = DenXtCommManager.getDenItemDef(param1);
|
||||
_layerId = _currDef.layer;
|
||||
_sortId = _currDef.sortCat;
|
||||
_typeCatId = _currDef.typeCat;
|
||||
_isMemberOnly = _currDef.membersOnly == "1";
|
||||
if(_diamondItem)
|
||||
{
|
||||
_itemStatus = _diamondItem.status;
|
||||
_value = _diamondItem.value;
|
||||
_currencyType = 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
_itemStatus = _currDef.itemStatus;
|
||||
_value = isOnSale ? Math.ceil(_currDef.cost * 0.5) : _currDef.cost;
|
||||
_currencyType = _currDef.currencyType;
|
||||
}
|
||||
_strmName = _defId == 617 ? "MusDenDef" : _currDef.abbrName;
|
||||
_name = _currDef.name;
|
||||
_minigameDefId = _currDef.gameDefId;
|
||||
_listId = _currDef.listId;
|
||||
_version2 = _currDef.flag;
|
||||
_enviroType = _currDef.enviroType;
|
||||
_recycleValue = _currDef.recycleValue == "0" ? _currDef.cost * gMainFrame.clientInfo.recyclePercentage : _currDef.recycleValue;
|
||||
_globalScale = _currDef.scalePercent / 100;
|
||||
_specialType = _currDef.specialType;
|
||||
if(_currencyType == 100)
|
||||
{
|
||||
_combinedCurrencyItem = new CombinedCurrencyItem(_currDef.combinedCurrencyString);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function destroy() : void
|
||||
{
|
||||
if(_iconHelper)
|
||||
{
|
||||
_iconHelper.destroy();
|
||||
_iconHelper = null;
|
||||
}
|
||||
_icon = null;
|
||||
if(_largeIconHelper)
|
||||
{
|
||||
_largeIconHelper.destroy();
|
||||
_largeIconHelper = null;
|
||||
}
|
||||
_largeIcon = null;
|
||||
}
|
||||
|
||||
public function initShopItem(param1:int, param2:int, param3:Boolean = false, param4:uint = 0) : void
|
||||
{
|
||||
_defId = param1;
|
||||
_setRandomVersion = param3;
|
||||
_version = param2;
|
||||
_currDef = DenXtCommManager.getDenItemDef(param1);
|
||||
_diamondItem = DiamondXtCommManager.getDiamondItem(DiamondXtCommManager.getDiamondDefIdByRefId(_defId,1));
|
||||
_name = _currDef.name;
|
||||
_isMemberOnly = _currDef.membersOnly == "1";
|
||||
if(_diamondItem)
|
||||
{
|
||||
_itemStatus = _diamondItem.status;
|
||||
_value = _diamondItem.value;
|
||||
_currencyType = 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
_itemStatus = _currDef.itemStatus;
|
||||
_value = isOnSale ? Math.ceil(_currDef.cost * 0.5) : _currDef.cost;
|
||||
_currencyType = _currDef.currencyType;
|
||||
}
|
||||
_minigameDefId = _currDef.gameDefId;
|
||||
_listId = _currDef.listId;
|
||||
_sortId = _currDef.sortCat;
|
||||
_typeCatId = _currDef.typeCat;
|
||||
_enviroType = _currDef.enviroType;
|
||||
_strmName = _currDef.abbrName;
|
||||
_version2 = _currDef.flag;
|
||||
_isShopItem = true;
|
||||
_globalScale = _currDef.scalePercent / 100;
|
||||
_endTime = param4;
|
||||
if(_currencyType == 100)
|
||||
{
|
||||
_combinedCurrencyItem = new CombinedCurrencyItem(_currDef.combinedCurrencyString);
|
||||
}
|
||||
}
|
||||
|
||||
public function ifItemDiffers(param1:Iitem) : Boolean
|
||||
{
|
||||
if(_invIdx == param1.invIdx)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function clone() : Iitem
|
||||
{
|
||||
var _loc1_:DenItem = new DenItem();
|
||||
if(_isShopItem)
|
||||
{
|
||||
_loc1_.initShopItem(_defId,_version,_setRandomVersion,_endTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc1_.init(_defId,_invIdx,_categoryId,_version,_refId,_petItem,_endTime,_isApproved,_uniqueImageId,uniqueImageCreator,uniqueImageCreatorDbId,uniqueImageCreatorUUID);
|
||||
}
|
||||
_loc1_.updateValueWithNewStatus(_itemStatus);
|
||||
_loc1_.imageLoadedCallback = imageLoadedCallback;
|
||||
return _loc1_;
|
||||
}
|
||||
|
||||
public function makeSmallIcon() : void
|
||||
{
|
||||
var _loc1_:int = int(_sortId == 99 ? _version2 : 0);
|
||||
var _loc2_:int = int(_sortId == 99 ? _version3 : 0);
|
||||
_icon = new Sprite();
|
||||
_iconHelper = new DenItemHelper();
|
||||
_iconHelper.init(uint(_defId << 16 | getIconId(_sortId)),iconReceived,_version,0,_loc1_,_loc2_,0,0,_uniqueImageId,_uniqueImageCreator);
|
||||
}
|
||||
|
||||
public function makeLargeIcon() : void
|
||||
{
|
||||
var _loc1_:int = int(_sortId == 99 ? _version2 : 0);
|
||||
var _loc2_:int = int(_sortId == 99 ? _version3 : 0);
|
||||
_largeIcon = new Sprite();
|
||||
_largeIconHelper = new DenItemHelper();
|
||||
_largeIconHelper.init(uint(_defId << 16 | getIconId(_sortId)),largeIconReceived,_version,0,_loc1_,_loc2_,0,0,_uniqueImageId,_uniqueImageCreator);
|
||||
}
|
||||
|
||||
public function getVersions() : Array
|
||||
{
|
||||
var _loc1_:Array = null;
|
||||
if(_iconHelper)
|
||||
{
|
||||
_loc1_ = _iconHelper.getVersions();
|
||||
}
|
||||
else if(_largeIconHelper)
|
||||
{
|
||||
_loc1_ = _largeIconHelper.getVersions();
|
||||
}
|
||||
if(_loc1_ == null)
|
||||
{
|
||||
_version = 0;
|
||||
}
|
||||
return _loc1_;
|
||||
}
|
||||
|
||||
public function setVersion(param1:int) : void
|
||||
{
|
||||
_version = param1;
|
||||
if(_iconHelper)
|
||||
{
|
||||
_iconHelper.setVersion(param1);
|
||||
}
|
||||
else if(_largeIconHelper)
|
||||
{
|
||||
_largeIconHelper.setVersion(param1);
|
||||
}
|
||||
}
|
||||
|
||||
private function iconReceived(param1:DenItemHelper) : void
|
||||
{
|
||||
var _loc2_:Array = null;
|
||||
param1.displayObject.cacheAsBitmap = true;
|
||||
_icon.addChild(param1.displayObject);
|
||||
_isIconLoaded = true;
|
||||
resizeAndPositionIcon(false);
|
||||
if(_setRandomVersion)
|
||||
{
|
||||
_loc2_ = getVersions();
|
||||
if(_loc2_)
|
||||
{
|
||||
setVersion(_loc2_[Math.floor(Math.random() * (_loc2_.length - 1 + 1))]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function largeIconReceived(param1:DenItemHelper) : void
|
||||
{
|
||||
var _loc2_:Array = null;
|
||||
param1.displayObject.cacheAsBitmap = true;
|
||||
_largeIcon.addChild(param1.displayObject);
|
||||
_isIconLoaded = true;
|
||||
resizeAndPositionIcon(true);
|
||||
if(_setRandomVersion)
|
||||
{
|
||||
_loc2_ = getVersions();
|
||||
if(_loc2_)
|
||||
{
|
||||
setVersion(_loc2_[Math.floor(Math.random() * (_loc2_.length - 1 + 1))]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function resizeAndPositionIcon(param1:Boolean) : void
|
||||
{
|
||||
var _loc2_:Number = NaN;
|
||||
var _loc5_:Sprite = null;
|
||||
var _loc4_:int = 0;
|
||||
if(param1)
|
||||
{
|
||||
_loc5_ = Sprite(_largeIcon.getChildAt(0));
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc5_ = Sprite(_icon.getChildAt(0));
|
||||
}
|
||||
var _loc3_:MovieClip = MovieClip(Loader(_loc5_.getChildAt(0)).content);
|
||||
_loc4_ = 0;
|
||||
while(_loc4_ < _loc3_.currentLabels.length)
|
||||
{
|
||||
if(_loc3_.currentLabels[_loc4_].name == "icon")
|
||||
{
|
||||
_loc3_.gotoAndStop("icon");
|
||||
break;
|
||||
}
|
||||
_loc4_++;
|
||||
}
|
||||
if(_isShopItem)
|
||||
{
|
||||
if(param1)
|
||||
{
|
||||
if(_loc3_.hasOwnProperty("listenToMouseInShop"))
|
||||
{
|
||||
_listenToMouse = _loc3_.listenToMouseInShop;
|
||||
}
|
||||
else
|
||||
{
|
||||
_listenToMouse = true;
|
||||
}
|
||||
_loc2_ = 280 / Math.max(_largeIcon.width,_largeIcon.height) * _globalScale;
|
||||
_largeIcon.width *= _loc2_;
|
||||
_largeIcon.height *= _loc2_;
|
||||
_largeIcon.x = -(_largeIcon.width * 0.5);
|
||||
_largeIcon.y = -(_largeIcon.height * 0.5);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc2_ = 168 / Math.max(_icon.width,_icon.height) * _globalScale;
|
||||
_icon.width *= _loc2_;
|
||||
_icon.height *= _loc2_;
|
||||
_icon.x = -(_icon.width * 0.5);
|
||||
_icon.y = -(_icon.height * 0.5);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc2_ = 80 / Math.max(_icon.width,_icon.height) * _globalScale;
|
||||
_icon.width *= _loc2_;
|
||||
_icon.height *= _loc2_;
|
||||
_icon.x = -(_icon.width * 0.5);
|
||||
_icon.y = -(_icon.height * 0.5);
|
||||
}
|
||||
listenToMouse(_listenToMouse,_loc3_);
|
||||
if(_imageLoadedCallback != null)
|
||||
{
|
||||
_imageLoadedCallback();
|
||||
}
|
||||
}
|
||||
|
||||
public function listenToMouse(param1:Boolean, param2:MovieClip = null) : void
|
||||
{
|
||||
var _loc3_:Sprite = null;
|
||||
_listenToMouse = param1;
|
||||
if(!param2)
|
||||
{
|
||||
if(_largeIcon)
|
||||
{
|
||||
if(_largeIcon.numChildren <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_loc3_ = Sprite(_largeIcon.getChildAt(0));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!_icon || _icon.numChildren <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_loc3_ = Sprite(_icon.getChildAt(0));
|
||||
}
|
||||
if(!_loc3_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
param2 = MovieClip(Loader(_loc3_.getChildAt(0)).content);
|
||||
}
|
||||
if(param2 && param2.hasOwnProperty("listenToMouse"))
|
||||
{
|
||||
param2.listenToMouse = _listenToMouse;
|
||||
}
|
||||
}
|
||||
|
||||
public function get sortId() : int
|
||||
{
|
||||
return _sortId;
|
||||
}
|
||||
|
||||
public function get typeCatId() : int
|
||||
{
|
||||
return _typeCatId;
|
||||
}
|
||||
|
||||
public function get diamondItem() : DiamondItem
|
||||
{
|
||||
return _diamondItem;
|
||||
}
|
||||
|
||||
public function set diamondItem(param1:DiamondItem) : void
|
||||
{
|
||||
_diamondItem = param1;
|
||||
}
|
||||
|
||||
public function get icon() : Sprite
|
||||
{
|
||||
if(!_icon)
|
||||
{
|
||||
makeSmallIcon();
|
||||
}
|
||||
return _icon;
|
||||
}
|
||||
|
||||
public function get largeIcon() : Sprite
|
||||
{
|
||||
if(!_largeIcon)
|
||||
{
|
||||
makeLargeIcon();
|
||||
}
|
||||
return _largeIcon;
|
||||
}
|
||||
|
||||
public function get isOnSale() : Boolean
|
||||
{
|
||||
return _itemStatus == 2;
|
||||
}
|
||||
|
||||
public function get isOnClearance() : Boolean
|
||||
{
|
||||
return _itemStatus == 3;
|
||||
}
|
||||
|
||||
public function get isRare() : Boolean
|
||||
{
|
||||
return _itemStatus == 4;
|
||||
}
|
||||
|
||||
public function get isNew() : Boolean
|
||||
{
|
||||
return _itemStatus == 1;
|
||||
}
|
||||
|
||||
public function get isOcean() : Boolean
|
||||
{
|
||||
return _enviroType == 1;
|
||||
}
|
||||
|
||||
public function get isLand() : Boolean
|
||||
{
|
||||
return _enviroType == 0;
|
||||
}
|
||||
|
||||
public function get isDiamond() : Boolean
|
||||
{
|
||||
return _diamondItem != null;
|
||||
}
|
||||
|
||||
public function get isRareDiamond() : Boolean
|
||||
{
|
||||
return isRare && isDiamond;
|
||||
}
|
||||
|
||||
public function get extraTooltipInfo() : String
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
public function get defId() : int
|
||||
{
|
||||
return _defId;
|
||||
}
|
||||
|
||||
public function set defId(param1:int) : void
|
||||
{
|
||||
_defId = param1;
|
||||
}
|
||||
|
||||
public function updateValueWithNewStatus(param1:int) : void
|
||||
{
|
||||
if(_currencyType != 100 && !isRare)
|
||||
{
|
||||
_itemStatus = param1;
|
||||
if(isOnSale)
|
||||
{
|
||||
if(_diamondItem)
|
||||
{
|
||||
if(_diamondItem.isOnSale)
|
||||
{
|
||||
_value = _diamondItem.value;
|
||||
}
|
||||
else
|
||||
{
|
||||
_value = Math.ceil(_diamondItem.value * 0.5);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_value = Math.ceil(_currDef.cost * 0.5);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_value = _diamondItem ? _diamondItem.value : _currDef.cost;
|
||||
}
|
||||
_recycleValue = _currDef.recycleValue == 0 ? _currDef.cost * gMainFrame.clientInfo.recyclePercentage : _currDef.recycleValue;
|
||||
}
|
||||
}
|
||||
|
||||
public function get combinedCurrencyItem() : CombinedCurrencyItem
|
||||
{
|
||||
return _combinedCurrencyItem;
|
||||
}
|
||||
|
||||
public function get sincleCurrencyCost() : int
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
public function get value() : *
|
||||
{
|
||||
if(_currencyType == 100)
|
||||
{
|
||||
return _combinedCurrencyItem;
|
||||
}
|
||||
return _value;
|
||||
}
|
||||
|
||||
public function get sortIdString() : String
|
||||
{
|
||||
switch(_layerId - 1)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
return LocalizationManager.translateIdOnly(11215).toLowerCase();
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public function get refId() : int
|
||||
{
|
||||
return _refId;
|
||||
}
|
||||
|
||||
public function get categoryId() : int
|
||||
{
|
||||
return _categoryId;
|
||||
}
|
||||
|
||||
public function set categoryId(param1:int) : void
|
||||
{
|
||||
_categoryId = param1;
|
||||
}
|
||||
|
||||
public function get version() : int
|
||||
{
|
||||
return _version;
|
||||
}
|
||||
|
||||
public function set version(param1:int) : void
|
||||
{
|
||||
_version = param1;
|
||||
}
|
||||
|
||||
public function get version2() : int
|
||||
{
|
||||
return _version2;
|
||||
}
|
||||
|
||||
public function set version2(param1:int) : void
|
||||
{
|
||||
_version2 = param1;
|
||||
}
|
||||
|
||||
public function get version3() : int
|
||||
{
|
||||
return _version3;
|
||||
}
|
||||
|
||||
public function set version3(param1:int) : void
|
||||
{
|
||||
_version3 = param1;
|
||||
}
|
||||
|
||||
public function get strmName() : String
|
||||
{
|
||||
return _strmName;
|
||||
}
|
||||
|
||||
public function get specialType() : int
|
||||
{
|
||||
return _specialType;
|
||||
}
|
||||
|
||||
public function get minigameDefId() : int
|
||||
{
|
||||
return _minigameDefId;
|
||||
}
|
||||
|
||||
public function get listId() : int
|
||||
{
|
||||
return _listId;
|
||||
}
|
||||
|
||||
public function get isMemberOnly() : Boolean
|
||||
{
|
||||
return _isMemberOnly;
|
||||
}
|
||||
|
||||
public function set isMemberOnly(param1:Boolean) : void
|
||||
{
|
||||
_isMemberOnly = param1;
|
||||
}
|
||||
|
||||
public function get layerId() : int
|
||||
{
|
||||
return _layerId;
|
||||
}
|
||||
|
||||
public function get invIdx() : int
|
||||
{
|
||||
return _invIdx;
|
||||
}
|
||||
|
||||
public function get name() : String
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
|
||||
public function get itemStatus() : int
|
||||
{
|
||||
return _itemStatus;
|
||||
}
|
||||
|
||||
public function get enviroType() : int
|
||||
{
|
||||
return _enviroType;
|
||||
}
|
||||
|
||||
public function get recycleValue() : int
|
||||
{
|
||||
return _recycleValue;
|
||||
}
|
||||
|
||||
public function get currencyType() : int
|
||||
{
|
||||
return _currencyType;
|
||||
}
|
||||
|
||||
public function get endTime() : uint
|
||||
{
|
||||
return _endTime;
|
||||
}
|
||||
|
||||
public function set endTime(param1:uint) : void
|
||||
{
|
||||
_endTime = param1;
|
||||
}
|
||||
|
||||
public function get isIconLoaded() : Boolean
|
||||
{
|
||||
return _isIconLoaded;
|
||||
}
|
||||
|
||||
public function get imageLoadedCallback() : Function
|
||||
{
|
||||
return _imageLoadedCallback;
|
||||
}
|
||||
|
||||
public function set imageLoadedCallback(param1:Function) : void
|
||||
{
|
||||
_imageLoadedCallback = param1;
|
||||
}
|
||||
|
||||
public function get isShopItem() : Boolean
|
||||
{
|
||||
return _isShopItem;
|
||||
}
|
||||
|
||||
public function get petType() : int
|
||||
{
|
||||
return _petType;
|
||||
}
|
||||
|
||||
public function get isApproved() : Boolean
|
||||
{
|
||||
return _isApproved;
|
||||
}
|
||||
|
||||
public function set isApproved(param1:Boolean) : void
|
||||
{
|
||||
_isApproved = param1;
|
||||
}
|
||||
|
||||
public function get uniqueImageId() : String
|
||||
{
|
||||
return _uniqueImageId;
|
||||
}
|
||||
|
||||
public function get uniqueImageCreator() : String
|
||||
{
|
||||
return _uniqueImageCreator;
|
||||
}
|
||||
|
||||
public function get uniqueImageCreatorDbId() : int
|
||||
{
|
||||
return _uniqueImageCreatorDbId;
|
||||
}
|
||||
|
||||
public function get uniqueImageCreatorUUID() : String
|
||||
{
|
||||
return _uniqueImageCreatorUUID;
|
||||
}
|
||||
|
||||
public function get isCustom() : Boolean
|
||||
{
|
||||
return _defId == 2725;
|
||||
}
|
||||
|
||||
public function get petTraitDefId() : int
|
||||
{
|
||||
return _petTraitDefId;
|
||||
}
|
||||
|
||||
public function set petTraitDefId(param1:int) : void
|
||||
{
|
||||
_petTraitDefId = param1;
|
||||
}
|
||||
|
||||
public function get petToyDefId() : int
|
||||
{
|
||||
return _petToyDefId;
|
||||
}
|
||||
|
||||
public function set petToyDefId(param1:int) : void
|
||||
{
|
||||
_petToyDefId = param1;
|
||||
}
|
||||
|
||||
public function get petFoodDefId() : int
|
||||
{
|
||||
return _petFoodDefId;
|
||||
}
|
||||
|
||||
public function set petFoodDefId(param1:int) : void
|
||||
{
|
||||
_petFoodDefId = param1;
|
||||
}
|
||||
|
||||
public function get createdTs() : Number
|
||||
{
|
||||
return _createdTs;
|
||||
}
|
||||
|
||||
public function set createdTs(param1:Number) : void
|
||||
{
|
||||
_createdTs = param1;
|
||||
}
|
||||
|
||||
public function get petItem() : PetItem
|
||||
{
|
||||
return _petItem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,445 @@
|
||||
package den
|
||||
{
|
||||
import currency.CombinedCurrencyItem;
|
||||
import diamond.DiamondItem;
|
||||
import diamond.DiamondXtCommManager;
|
||||
import flash.display.MovieClip;
|
||||
import flash.display.Sprite;
|
||||
import inventory.Iitem;
|
||||
import loader.MediaHelper;
|
||||
|
||||
public class DenRoomItem implements Iitem
|
||||
{
|
||||
|
||||
public static const NORMAL_ITEM:int = 0;
|
||||
|
||||
public static const NEW_ITEM:int = 1;
|
||||
|
||||
public static const SALE_ITEM:int = 2;
|
||||
|
||||
public static const CLEARANCE_ITEM:int = 3;
|
||||
|
||||
public static const RARE_ITEM:int = 4;
|
||||
|
||||
private var _denRoomDef:Object;
|
||||
|
||||
private var _invId:int;
|
||||
|
||||
private var _defId:int;
|
||||
|
||||
private var _value:int;
|
||||
|
||||
private var _name:String;
|
||||
|
||||
private var _itemStatus:int;
|
||||
|
||||
private var _isIconLoaded:Boolean;
|
||||
|
||||
private var _imageLoadedCallback:Function;
|
||||
|
||||
private var _enviroType:int;
|
||||
|
||||
private var _currencyType:int;
|
||||
|
||||
private var _endTime:uint;
|
||||
|
||||
private var _recycleValue:int;
|
||||
|
||||
private var _diamondItem:DiamondItem;
|
||||
|
||||
private var _mediaId:int;
|
||||
|
||||
private var _mediaIdLarge:int;
|
||||
|
||||
private var _mediaHelper:MediaHelper;
|
||||
|
||||
private var _mediaHelperLarge:MediaHelper;
|
||||
|
||||
private var _isMemberOnly:Boolean;
|
||||
|
||||
private var _waitForSmallIcon:Boolean;
|
||||
|
||||
private var _waitForLargeIcon:Boolean;
|
||||
|
||||
private var _icon:Sprite;
|
||||
|
||||
private var _largeIcon:Sprite;
|
||||
|
||||
private var _isShopItem:Boolean;
|
||||
|
||||
private var _combinedCurrencyItem:CombinedCurrencyItem;
|
||||
|
||||
public function DenRoomItem()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function init(param1:int, param2:int, param3:Object, param4:int = 0) : void
|
||||
{
|
||||
_invId = param1;
|
||||
_defId = param2;
|
||||
_denRoomDef = param3;
|
||||
_diamondItem = DiamondXtCommManager.getDiamondItem(DiamondXtCommManager.getDiamondDefIdByRefId(param2,4));
|
||||
if(_diamondItem)
|
||||
{
|
||||
_itemStatus = _diamondItem.status;
|
||||
_value = _diamondItem.value;
|
||||
_currencyType = 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
_itemStatus = _denRoomDef.itemStatus;
|
||||
_value = isOnSale ? Math.ceil(_denRoomDef.value * 0.5) : _denRoomDef.value;
|
||||
_currencyType = _denRoomDef.currencyType;
|
||||
}
|
||||
_mediaId = param3.mediaId;
|
||||
_recycleValue = _denRoomDef.value * gMainFrame.clientInfo.recyclePercentage;
|
||||
_name = param3.name;
|
||||
_isMemberOnly = param3.membersOnly;
|
||||
_enviroType = param3.enviroType;
|
||||
_endTime = param4;
|
||||
_icon = new Sprite();
|
||||
_waitForSmallIcon = true;
|
||||
_combinedCurrencyItem = null;
|
||||
}
|
||||
|
||||
public function destroy() : void
|
||||
{
|
||||
_icon = null;
|
||||
_largeIcon = null;
|
||||
}
|
||||
|
||||
public function initShopItem(param1:int, param2:int, param3:Object, param4:uint = 0) : void
|
||||
{
|
||||
_invId = param1;
|
||||
_defId = param2;
|
||||
_denRoomDef = param3;
|
||||
_mediaId = param3.mediaId;
|
||||
_mediaIdLarge = param3.mediaIdLarge;
|
||||
_diamondItem = DiamondXtCommManager.getDiamondItem(DiamondXtCommManager.getDiamondDefIdByRefId(param2,4));
|
||||
if(_diamondItem)
|
||||
{
|
||||
_itemStatus = _diamondItem.status;
|
||||
_value = _diamondItem.value;
|
||||
_currencyType = 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
_itemStatus = _denRoomDef.itemStatus;
|
||||
_value = isOnSale ? Math.ceil(_denRoomDef.value * 0.5) : _denRoomDef.value;
|
||||
_currencyType = 0;
|
||||
}
|
||||
_name = param3.name;
|
||||
_isMemberOnly = param3.membersOnly;
|
||||
_enviroType = param3.enviroType;
|
||||
_endTime = param4;
|
||||
_recycleValue = param3.value * gMainFrame.clientInfo.recyclePercentage;
|
||||
_combinedCurrencyItem = null;
|
||||
_isShopItem = true;
|
||||
_icon = new Sprite();
|
||||
_largeIcon = new Sprite();
|
||||
_waitForSmallIcon = _waitForLargeIcon = true;
|
||||
makeShopIcons();
|
||||
}
|
||||
|
||||
public function ifItemDiffers(param1:Iitem) : Boolean
|
||||
{
|
||||
var _loc2_:DenRoomItem = param1 as DenRoomItem;
|
||||
if(_loc2_)
|
||||
{
|
||||
if(_defId == param1.defId)
|
||||
{
|
||||
if(value != _loc2_.value || _name != _loc2_._name || _isMemberOnly != _loc2_._isMemberOnly || isNew != _loc2_.isNew || isOnSale != _loc2_.isOnSale || _recycleValue != _loc2_._recycleValue || _currencyType != _loc2_._currencyType || _endTime != _loc2_._endTime)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function clone() : Iitem
|
||||
{
|
||||
var _loc1_:DenRoomItem = new DenRoomItem();
|
||||
if(_isShopItem)
|
||||
{
|
||||
_loc1_.initShopItem(_invId,_defId,_denRoomDef,_endTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc1_.init(_invId,_defId,_denRoomDef,_endTime);
|
||||
}
|
||||
_loc1_.updateValueWithNewStatus(_itemStatus);
|
||||
_loc1_.imageLoadedCallback = imageLoadedCallback;
|
||||
return _loc1_;
|
||||
}
|
||||
|
||||
private function makeIcon() : void
|
||||
{
|
||||
var _loc1_:MediaHelper = new MediaHelper();
|
||||
_loc1_.init(_mediaId,mediaHelperCallback,true);
|
||||
}
|
||||
|
||||
private function makeShopIcons() : void
|
||||
{
|
||||
_mediaHelper = new MediaHelper();
|
||||
_mediaHelper.init(_mediaId,mediaHelperCallback,true);
|
||||
_mediaHelperLarge = new MediaHelper();
|
||||
_mediaHelperLarge.init(_mediaIdLarge,mediaHelperCallback,true);
|
||||
}
|
||||
|
||||
private function mediaHelperCallback(param1:MovieClip) : void
|
||||
{
|
||||
if(_mediaId == param1.mediaHelper.id)
|
||||
{
|
||||
if(_icon)
|
||||
{
|
||||
_icon.addChild(param1);
|
||||
}
|
||||
if(!_isShopItem)
|
||||
{
|
||||
_icon.x = -(_icon.width * 0.5);
|
||||
_icon.y = -(_icon.height * 0.5);
|
||||
}
|
||||
if(_mediaHelper)
|
||||
{
|
||||
_mediaHelper.destroy();
|
||||
_mediaHelper = null;
|
||||
}
|
||||
}
|
||||
else if(_mediaIdLarge == param1.mediaHelper.id)
|
||||
{
|
||||
if(_largeIcon)
|
||||
{
|
||||
_largeIcon.addChild(param1);
|
||||
}
|
||||
if(!_isShopItem)
|
||||
{
|
||||
_largeIcon.x = -(_largeIcon.width * 0.5);
|
||||
_largeIcon.y = -(_largeIcon.height * 0.5);
|
||||
}
|
||||
if(_mediaHelperLarge)
|
||||
{
|
||||
_mediaHelperLarge.destroy();
|
||||
_mediaHelperLarge = null;
|
||||
}
|
||||
}
|
||||
if(_imageLoadedCallback != null)
|
||||
{
|
||||
_imageLoadedCallback();
|
||||
}
|
||||
_isIconLoaded = true;
|
||||
}
|
||||
|
||||
public function get defId() : int
|
||||
{
|
||||
return _defId;
|
||||
}
|
||||
|
||||
public function set defId(param1:int) : void
|
||||
{
|
||||
_defId = param1;
|
||||
}
|
||||
|
||||
public function get invIdx() : int
|
||||
{
|
||||
return _invId;
|
||||
}
|
||||
|
||||
public function get value() : *
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
public function get name() : String
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
|
||||
public function get itemStatus() : int
|
||||
{
|
||||
return _itemStatus;
|
||||
}
|
||||
|
||||
public function get isIconLoaded() : Boolean
|
||||
{
|
||||
return _isIconLoaded;
|
||||
}
|
||||
|
||||
public function get imageLoadedCallback() : Function
|
||||
{
|
||||
return _imageLoadedCallback;
|
||||
}
|
||||
|
||||
public function set imageLoadedCallback(param1:Function) : void
|
||||
{
|
||||
_imageLoadedCallback = param1;
|
||||
}
|
||||
|
||||
public function get enviroType() : int
|
||||
{
|
||||
return _enviroType;
|
||||
}
|
||||
|
||||
public function get currencyType() : int
|
||||
{
|
||||
return _currencyType;
|
||||
}
|
||||
|
||||
public function get endTime() : uint
|
||||
{
|
||||
return _endTime;
|
||||
}
|
||||
|
||||
public function set endTime(param1:uint) : void
|
||||
{
|
||||
_endTime = param1;
|
||||
}
|
||||
|
||||
public function get recycleValue() : int
|
||||
{
|
||||
return _recycleValue;
|
||||
}
|
||||
|
||||
public function get icon() : Sprite
|
||||
{
|
||||
return _icon;
|
||||
}
|
||||
|
||||
public function get largeIcon() : Sprite
|
||||
{
|
||||
return _largeIcon;
|
||||
}
|
||||
|
||||
public function get mediaId() : int
|
||||
{
|
||||
return _mediaId;
|
||||
}
|
||||
|
||||
public function get mediaIdLarge() : int
|
||||
{
|
||||
return _mediaIdLarge;
|
||||
}
|
||||
|
||||
public function get isMemberOnly() : Boolean
|
||||
{
|
||||
return _isMemberOnly;
|
||||
}
|
||||
|
||||
public function set isMemberOnly(param1:Boolean) : void
|
||||
{
|
||||
throw new Error("DenRoomItem does not implement changing member only value");
|
||||
}
|
||||
|
||||
public function get isOnSale() : Boolean
|
||||
{
|
||||
return _itemStatus == 2;
|
||||
}
|
||||
|
||||
public function get isOnClearance() : Boolean
|
||||
{
|
||||
return _itemStatus == 3;
|
||||
}
|
||||
|
||||
public function get isRare() : Boolean
|
||||
{
|
||||
return _itemStatus == 4;
|
||||
}
|
||||
|
||||
public function get isNew() : Boolean
|
||||
{
|
||||
return _itemStatus == 1;
|
||||
}
|
||||
|
||||
public function get isOcean() : Boolean
|
||||
{
|
||||
return _enviroType == 1;
|
||||
}
|
||||
|
||||
public function get isLand() : Boolean
|
||||
{
|
||||
return _enviroType == 0;
|
||||
}
|
||||
|
||||
public function get isDiamond() : Boolean
|
||||
{
|
||||
return _diamondItem != null;
|
||||
}
|
||||
|
||||
public function get isRareDiamond() : Boolean
|
||||
{
|
||||
return isRare && isDiamond;
|
||||
}
|
||||
|
||||
public function get diamondItem() : DiamondItem
|
||||
{
|
||||
return _diamondItem;
|
||||
}
|
||||
|
||||
public function set diamondItem(param1:DiamondItem) : void
|
||||
{
|
||||
_diamondItem = param1;
|
||||
}
|
||||
|
||||
public function get combinedCurrencyItem() : CombinedCurrencyItem
|
||||
{
|
||||
return _combinedCurrencyItem;
|
||||
}
|
||||
|
||||
public function get isShopItem() : Boolean
|
||||
{
|
||||
return _isShopItem;
|
||||
}
|
||||
|
||||
public function get layerId() : int
|
||||
{
|
||||
throw new Error("Unused in this class");
|
||||
}
|
||||
|
||||
public function get isApproved() : Boolean
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function set isApproved(param1:Boolean) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function get isCustom() : Boolean
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function updateValueWithNewStatus(param1:int) : void
|
||||
{
|
||||
if(!isRare)
|
||||
{
|
||||
_itemStatus = param1;
|
||||
if(isOnSale)
|
||||
{
|
||||
if(_diamondItem)
|
||||
{
|
||||
if(_diamondItem.isOnSale)
|
||||
{
|
||||
_value = _diamondItem.value;
|
||||
}
|
||||
else
|
||||
{
|
||||
_value = Math.ceil(_diamondItem.value * 0.5);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_value = Math.ceil(_denRoomDef.value * 0.5);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_value = _diamondItem ? _diamondItem.value : _denRoomDef.value;
|
||||
}
|
||||
_recycleValue = _denRoomDef.recycleValue == 0 ? _denRoomDef.value * gMainFrame.clientInfo.recyclePercentage : _denRoomDef.recycleValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,417 @@
|
||||
package den
|
||||
{
|
||||
import loader.DenItemHelper;
|
||||
import localization.LocalizationManager;
|
||||
import pet.PetItem;
|
||||
|
||||
public class DenStateItem
|
||||
{
|
||||
|
||||
private var _defId:int;
|
||||
|
||||
private var _invIdx:int;
|
||||
|
||||
private var _packedId:int;
|
||||
|
||||
private var _x:int;
|
||||
|
||||
private var _y:int;
|
||||
|
||||
private var _version:int;
|
||||
|
||||
private var _version2:int;
|
||||
|
||||
private var _version3:int;
|
||||
|
||||
private var _flipped:int;
|
||||
|
||||
private var _catId:int;
|
||||
|
||||
private var _refId:int;
|
||||
|
||||
private var _sortCatId:int;
|
||||
|
||||
private var _minigameDefId:int;
|
||||
|
||||
private var _layerId:int;
|
||||
|
||||
private var _enviroType:int;
|
||||
|
||||
private var _strmName:String;
|
||||
|
||||
private var _nameStrId:int;
|
||||
|
||||
private var _userNameLink:String;
|
||||
|
||||
private var _specialType:int;
|
||||
|
||||
private var _listLauncherId:int;
|
||||
|
||||
private var _uniqueImageId:String;
|
||||
|
||||
private var _uniqueImageCreator:String;
|
||||
|
||||
private var _uniqueImageCreatorDbId:int;
|
||||
|
||||
private var _uniqueImageCreatorUUID:String;
|
||||
|
||||
private var _userAction:Boolean;
|
||||
|
||||
private var _denItemHelper:DenItemHelper;
|
||||
|
||||
private var _offsetX:int;
|
||||
|
||||
private var _offsetY:int;
|
||||
|
||||
private var _newPlaced:Boolean;
|
||||
|
||||
private var _petItem:PetItem;
|
||||
|
||||
public function DenStateItem(param1:int, param2:int, param3:int, param4:int, param5:int, param6:int, param7:int, param8:int, param9:int, param10:int, param11:int, param12:int, param13:int, param14:int, param15:int, param16:String, param17:int, param18:String, param19:int, param20:int, param21:String, param22:String, param23:int, param24:String, param25:Boolean, param26:DenItemHelper, param27:int, param28:int, param29:PetItem)
|
||||
{
|
||||
super();
|
||||
_defId = param1;
|
||||
_invIdx = param2;
|
||||
_packedId = param3;
|
||||
_x = param4;
|
||||
_y = param5;
|
||||
_version = param6;
|
||||
_version2 = param7;
|
||||
_version3 = param8;
|
||||
_flipped = param9;
|
||||
_catId = param10;
|
||||
_refId = param11;
|
||||
_sortCatId = param12;
|
||||
_minigameDefId = param13;
|
||||
_layerId = param14;
|
||||
_enviroType = param15;
|
||||
_strmName = param16;
|
||||
_nameStrId = param17;
|
||||
_userNameLink = param18;
|
||||
_specialType = param19;
|
||||
_listLauncherId = param20;
|
||||
_uniqueImageId = param21;
|
||||
if(param22.charAt(0) == "#")
|
||||
{
|
||||
_uniqueImageCreator = LocalizationManager.translateIdOnly(int(param22.substr(1)));
|
||||
}
|
||||
else
|
||||
{
|
||||
_uniqueImageCreator = param22;
|
||||
}
|
||||
_uniqueImageCreatorDbId = param23;
|
||||
_uniqueImageCreatorUUID = param24;
|
||||
_userAction = param25;
|
||||
_denItemHelper = param26;
|
||||
_offsetX = param27;
|
||||
_offsetY = param28;
|
||||
_petItem = param29;
|
||||
}
|
||||
|
||||
public function clone() : DenStateItem
|
||||
{
|
||||
return new DenStateItem(_defId,_invIdx,_packedId,_x,_y,_version,_version2,_version3,_flipped,_catId,_refId,_sortCatId,_minigameDefId,_layerId,_enviroType,_strmName,_nameStrId,_userNameLink,_specialType,_listLauncherId,_uniqueImageId,_uniqueImageCreator,_uniqueImageCreatorDbId,_uniqueImageCreatorUUID,_userAction,_denItemHelper,_offsetX,_offsetY,_petItem);
|
||||
}
|
||||
|
||||
public function get defId() : int
|
||||
{
|
||||
return _defId;
|
||||
}
|
||||
|
||||
public function set defId(param1:int) : void
|
||||
{
|
||||
_defId = param1;
|
||||
}
|
||||
|
||||
public function get invIdx() : int
|
||||
{
|
||||
return _invIdx;
|
||||
}
|
||||
|
||||
public function set invIdx(param1:int) : void
|
||||
{
|
||||
_invIdx = param1;
|
||||
}
|
||||
|
||||
public function get packedId() : int
|
||||
{
|
||||
return _packedId;
|
||||
}
|
||||
|
||||
public function set packedId(param1:int) : void
|
||||
{
|
||||
_packedId = param1;
|
||||
}
|
||||
|
||||
public function get x() : int
|
||||
{
|
||||
return _x;
|
||||
}
|
||||
|
||||
public function set x(param1:int) : void
|
||||
{
|
||||
_x = param1;
|
||||
}
|
||||
|
||||
public function get y() : int
|
||||
{
|
||||
return _y;
|
||||
}
|
||||
|
||||
public function set y(param1:int) : void
|
||||
{
|
||||
_y = param1;
|
||||
}
|
||||
|
||||
public function get version() : int
|
||||
{
|
||||
return _version;
|
||||
}
|
||||
|
||||
public function set version(param1:int) : void
|
||||
{
|
||||
_version = param1;
|
||||
}
|
||||
|
||||
public function get version2() : int
|
||||
{
|
||||
return _version2;
|
||||
}
|
||||
|
||||
public function set version2(param1:int) : void
|
||||
{
|
||||
_version2 = param1;
|
||||
}
|
||||
|
||||
public function get version3() : int
|
||||
{
|
||||
return _version3;
|
||||
}
|
||||
|
||||
public function set version3(param1:int) : void
|
||||
{
|
||||
_version3 = param1;
|
||||
}
|
||||
|
||||
public function get flipped() : int
|
||||
{
|
||||
return _flipped;
|
||||
}
|
||||
|
||||
public function set flipped(param1:int) : void
|
||||
{
|
||||
_flipped = param1;
|
||||
}
|
||||
|
||||
public function get catId() : int
|
||||
{
|
||||
return _catId;
|
||||
}
|
||||
|
||||
public function set catId(param1:int) : void
|
||||
{
|
||||
_catId = param1;
|
||||
}
|
||||
|
||||
public function get refId() : int
|
||||
{
|
||||
return _refId;
|
||||
}
|
||||
|
||||
public function set refId(param1:int) : void
|
||||
{
|
||||
_refId = param1;
|
||||
}
|
||||
|
||||
public function get sortCatId() : int
|
||||
{
|
||||
return _sortCatId;
|
||||
}
|
||||
|
||||
public function set sortCatId(param1:int) : void
|
||||
{
|
||||
_sortCatId = param1;
|
||||
}
|
||||
|
||||
public function get minigameDefId() : int
|
||||
{
|
||||
return _minigameDefId;
|
||||
}
|
||||
|
||||
public function set minigameDefId(param1:int) : void
|
||||
{
|
||||
_minigameDefId = param1;
|
||||
}
|
||||
|
||||
public function get layerId() : int
|
||||
{
|
||||
return _layerId;
|
||||
}
|
||||
|
||||
public function set layerId(param1:int) : void
|
||||
{
|
||||
_layerId = param1;
|
||||
}
|
||||
|
||||
public function get enviroType() : int
|
||||
{
|
||||
return _enviroType;
|
||||
}
|
||||
|
||||
public function set enviroType(param1:int) : void
|
||||
{
|
||||
_enviroType = param1;
|
||||
}
|
||||
|
||||
public function get strmName() : String
|
||||
{
|
||||
return _strmName;
|
||||
}
|
||||
|
||||
public function set strmName(param1:String) : void
|
||||
{
|
||||
_strmName = param1;
|
||||
}
|
||||
|
||||
public function get nameStrId() : int
|
||||
{
|
||||
return _nameStrId;
|
||||
}
|
||||
|
||||
public function set nameStrId(param1:int) : void
|
||||
{
|
||||
_nameStrId = param1;
|
||||
}
|
||||
|
||||
public function get userNameLink() : String
|
||||
{
|
||||
return _userNameLink;
|
||||
}
|
||||
|
||||
public function set userNameLink(param1:String) : void
|
||||
{
|
||||
_userNameLink = param1;
|
||||
}
|
||||
|
||||
public function get specialType() : int
|
||||
{
|
||||
return _specialType;
|
||||
}
|
||||
|
||||
public function set specialType(param1:int) : void
|
||||
{
|
||||
_specialType = param1;
|
||||
}
|
||||
|
||||
public function get listLauncherId() : int
|
||||
{
|
||||
return _listLauncherId;
|
||||
}
|
||||
|
||||
public function set listLauncherId(param1:int) : void
|
||||
{
|
||||
_listLauncherId = param1;
|
||||
}
|
||||
|
||||
public function get uniqueImageId() : String
|
||||
{
|
||||
return _uniqueImageId;
|
||||
}
|
||||
|
||||
public function set uniqueImageId(param1:String) : void
|
||||
{
|
||||
_uniqueImageId = param1;
|
||||
}
|
||||
|
||||
public function get uniqueImageCreator() : String
|
||||
{
|
||||
return _uniqueImageCreator;
|
||||
}
|
||||
|
||||
public function set uniqueImageCreator(param1:String) : void
|
||||
{
|
||||
_uniqueImageCreator = param1;
|
||||
}
|
||||
|
||||
public function get uniqueImageCreatorDbId() : int
|
||||
{
|
||||
return _uniqueImageCreatorDbId;
|
||||
}
|
||||
|
||||
public function set uniqueImageCreatorDbId(param1:int) : void
|
||||
{
|
||||
_uniqueImageCreatorDbId = param1;
|
||||
}
|
||||
|
||||
public function get uniqueImageCreatorUUID() : String
|
||||
{
|
||||
return _uniqueImageCreatorUUID;
|
||||
}
|
||||
|
||||
public function set uniqueImageCreatorUUID(param1:String) : void
|
||||
{
|
||||
_uniqueImageCreatorUUID = param1;
|
||||
}
|
||||
|
||||
public function get userAction() : Boolean
|
||||
{
|
||||
return _userAction;
|
||||
}
|
||||
|
||||
public function set userAction(param1:Boolean) : void
|
||||
{
|
||||
_userAction = param1;
|
||||
}
|
||||
|
||||
public function get denItemHelper() : DenItemHelper
|
||||
{
|
||||
return _denItemHelper;
|
||||
}
|
||||
|
||||
public function set denItemHelper(param1:DenItemHelper) : void
|
||||
{
|
||||
_denItemHelper = param1;
|
||||
}
|
||||
|
||||
public function get offsetX() : int
|
||||
{
|
||||
return _offsetX;
|
||||
}
|
||||
|
||||
public function set offsetX(param1:int) : void
|
||||
{
|
||||
_offsetX = param1;
|
||||
}
|
||||
|
||||
public function get offsetY() : int
|
||||
{
|
||||
return _offsetY;
|
||||
}
|
||||
|
||||
public function set offsetY(param1:int) : void
|
||||
{
|
||||
_offsetY = param1;
|
||||
}
|
||||
|
||||
public function get newPlaced() : Boolean
|
||||
{
|
||||
return _newPlaced;
|
||||
}
|
||||
|
||||
public function set newPlaced(param1:Boolean) : void
|
||||
{
|
||||
_newPlaced = param1;
|
||||
}
|
||||
|
||||
public function get petItem() : PetItem
|
||||
{
|
||||
return _petItem;
|
||||
}
|
||||
|
||||
public function set petItem(param1:PetItem) : void
|
||||
{
|
||||
_petItem = param1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user