Ejemplo n.º 1
0
 public ItemTplData(string _value)
 {
     string[] array = _value.Split(new char[] { StaticDataConstant.GAP_TAB });
     id                  = StaticDataManager.stringToInt(array[0]);
     ItemName            = array[1];
     ItemType            = StaticDataManager.stringToInt(array[2]);
     ItemQuality         = StaticDataManager.stringToInt(array[3]);
     ItemDesc            = array[4];
     ItemIconName        = array[5];
     ItemMaxStackNum     = StaticDataManager.stringToInt(array[6]);
     ItemMaxShelflife    = StaticDataManager.stringToInt(array[7]);
     ItemBindType        = StaticDataManager.stringToInt(array[8]);
     ItemUseCamp         = StaticDataManager.stringToInt(array[9]);
     ItemSex             = StaticDataManager.stringToInt(array[10]);
     ItemProfession      = StaticDataManager.stringToInt(array[11]);
     ItemUseRoleLv       = StaticDataManager.stringToUshort(array[12]);
     ItemUseRoleOfficeLv = StaticDataManager.stringToByte(array[13]);
     ItemUseVipLv        = StaticDataManager.stringToByte(array[14]);
     CanManualUse        = StaticDataManager.stringToByte(array[15]);
     ItemUseId           = StaticDataManager.stringToInt(array[16]);
     ItemIsSell          = StaticDataManager.stringToByte(array[17]);
     SellCurrenceType    = StaticDataManager.stringToInt(array[18]);
     SellingPrice        = StaticDataManager.stringToInt(array[19]);
     CdDelay             = StaticDataManager.stringToFloat(array[20]);
 }