public List <ITEM> GetTypeItemsByInvenType(int InvenType, eITEM_TYPE eType) { List <ITEM> list = new List <ITEM>(); if (InvenType < 0 || InvenType >= 7) { return(list); } if (this.m_Inventory[InvenType] == null) { return(list); } int num = 30; for (int i = 0; i < num; i++) { ITEM iTEM = this.m_Inventory[InvenType].m_kInvenItem[i]; if (iTEM != null) { ITEMINFO itemInfo = NrTSingleton <ItemManager> .Instance.GetItemInfo(iTEM.m_nItemUnique); if (itemInfo != null) { if (itemInfo.m_nItemType == (int)eType) { list.Add(iTEM); } } } } return(list); }
public List <ITEMSKILL_INFO> GetValueFromItemType(eITEM_TYPE eItemType) { List <ITEMSKILL_INFO> list = new List <ITEMSKILL_INFO>(); for (int i = 0; i < this.m_ItemSkillList.Count; i++) { if (eItemType == this.m_ItemSkillList[i].m_eItemType) { list.Add(this.m_ItemSkillList[i]); } } return(list); }
public void Set(AuctionSearchOption SearchOption) { this.m_eAuctionRegisterType = SearchOption.m_eAuctionRegisterType; this.m_eItemType = SearchOption.m_eItemType; this.m_iUseMinLevel = SearchOption.m_iUseMinLevel; this.m_iUseMaxLevel = SearchOption.m_iUseMaxLevel; this.m_iItemSkillUnique = SearchOption.m_iItemSkillUnique; this.m_iItemSkillLevel = SearchOption.m_iItemSkillLevel; this.m_iItemTradeCount = SearchOption.m_iItemTradeCount; this.m_bySolSeason = SearchOption.m_bySolSeason; this.m_iSolLevel = SearchOption.m_iSolLevel; this.m_strSolName = SearchOption.m_strSolName; this.m_iSolTradeCount = SearchOption.m_iSolTradeCount; this.m_lCostMoney = SearchOption.m_lCostMoney; this.m_lDirectCostMoney = SearchOption.m_lDirectCostMoney; this.m_iCostHearts = SearchOption.m_iCostHearts; this.m_iCostDirectHearts = SearchOption.m_iCostDirectHearts; this.m_ePayType = SearchOption.m_ePayType; }