public Tbl_ItemRankWeight_Record GetRecord( int ilevel, eITEM_EFFECT type ) { foreach( Tbl_ItemRankWeight_Record record in m_recordList ) { if( record.iItemlevel == ilevel && record.eOptionType == type ) { return record; } } Debug.LogError( "ItemRankWeightTable::Getrecord()[ level: " + ilevel + "type :" + type ); return null; }
public Tbl_ItemRankWeight_Record(BinaryReader br) { iItemlevel = br.ReadInt32(); eOptionType = (eITEM_EFFECT)br.ReadInt32(); m_itemClassList.Add( eCLASS.All, br.ReadSingle() ); m_itemClassList.Add( eCLASS.DIVINEKNIGHT, br.ReadSingle() ); m_itemClassList.Add( eCLASS.CLERIC, br.ReadSingle() ); m_itemClassList.Add( eCLASS.MAGICIAN, br.ReadSingle() ); m_itemClassList.Add( eCLASS.HUNTER, br.ReadSingle() ); m_itemClassList.Add( eCLASS.ASSASSIN, br.ReadSingle() ); }
public ItemData(BinaryReader br) { m_iID = br.ReadInt32(); m_iNameID = br.ReadInt32(); m_iDestID = br.ReadInt32(); m_eItemType = (Item.eITEM_TYPE)br.ReadInt32(); m_iSubType = br.ReadInt32(); m_GoodsType = (Item.eGOODS_TYPE)br.ReadInt32(); m_eGrade = (Item.eGRADE)br.ReadInt32(); m_iBuyAmount = br.ReadInt32(); m_iSellAmount = br.ReadInt32(); m_iRankPoint = br.ReadInt32(); m_eGender = (eGENDER)br.ReadInt32(); m_iLevelLimit = br.ReadInt32(); #region - eCLASS parsing within PET - if( CheckPetItem() == true) { petClass_ = br.ReadString(); m_eNeedClass = eCLASS.PET; } else m_eNeedClass = (eCLASS)br.ReadInt32(); #endregion m_iOverlapCount = br.ReadInt32(); m_sbItemTradeLimit = br.ReadSByte(); m_eUseTimeType = (Item.eUSE_TIME_TYPE)br.ReadInt32(); m_iItemUseTime = br.ReadInt32(); // m_bItem_Onlyone = br.ReadBoolean(); m_bItem_Storage_Limit = br.ReadBoolean(); m_bDropSeal = br.ReadBoolean(); m_bDump = br.ReadBoolean(); m_bItemStrengthen = br.ReadBoolean(); m_bShopSell = br.ReadBoolean(); m_iItem_PatkDmg_Min = br.ReadInt32(); m_iItem_PatkDmg_Max = br.ReadInt32(); m_iItem_MatkDmg_Min = br.ReadInt32(); m_iItem_MatkDmg_Max = br.ReadInt32(); m_iItem_Pdef = br.ReadInt32(); m_iItem_Mdef = br.ReadInt32(); m_iItem_SkilI_ID = br.ReadInt32(); m_iItem_Skill_Level = br.ReadInt32(); m_isItem_OptionType = br.ReadBoolean(); m_iItem_Fix1_ID = (eITEM_EFFECT)br.ReadInt32(); m_iItem_Fix1_Value = br.ReadInt32(); m_iItem_Fix2_ID = (eITEM_EFFECT)br.ReadInt32(); m_iItem_Fix2_Value = br.ReadInt32(); m_iItem_Rand_ID = br.ReadInt32(); m_iItem_SetGroup_ID = br.ReadInt32(); m_strIcon = br.ReadString(); m_strDropItem = br.ReadString(); m_iItem_Buy_Limit = br.ReadInt32(); m_strPartsItem_M = br.ReadString(); m_strPartsItem_W = br.ReadString(); m_strPartsDiff_M = br.ReadString(); m_strPartsDiff_W = br.ReadString(); m_strDropSound = br.ReadString(); //m_strRootSound = br.ReadString();//kij m_strUseSound = br.ReadString(); //m_strItemHitSound = br.ReadString();//kij //m_strItem_Root_Effect = br.ReadString();//kij //m_strItem_Hit_Effect = br.ReadString();//kij m_Item_Costume_PatkDmg = br.ReadInt32(); m_Item_Costume_MatkDmg = br.ReadInt32(); m_Item_Costume_Pdef = br.ReadInt32(); m_Item_Costume_Mdef = br.ReadInt32(); m_Item_Disassemble = (eItem_Disassemble)br.ReadInt32(); m_Item_MixEnchant = br.ReadBoolean(); m_AbsorbExp = br.ReadInt32(); }
static public eITEM_OPTION GetOptionType( eITEM_EFFECT eItemEffect ) { int iTemp = (int)eItemEffect; return (eITEM_OPTION)iTemp; }
public Tbl_ItemRankWeight_Record GetTblItemRankWeightRecord( int ilevel, eITEM_EFFECT type) { return m_ItemRankWeightTable.GetRecord( ilevel, type); }