void _Packet(ScRoleEquipedItems equipments) { if (equipments != null) { PItem[] items = null; equipments.itemInfo.CopyTo(ref items); SetLossTime(items); for (int i = 0; i < items.Length; i++) { var d = GetItemByGUID(items[i].itemId); if (d == null) { m_allItems.Add(items[i]); } } } }
void _Packet(ScRoleEquipedItems p) { PItem[] items = null; p.itemInfo.CopyTo(ref items); m_currentEquip.Clear(); for (int i = 0, length = items.Length; i < length; i++) { //筛选符文 if (items[i].GetPropItem().itemType == PropType.Rune) { var isContains = Contains(m_currentEquip, items[i]); if (!isContains) { m_currentEquip.Add(items[i]); } } } ListSortAll(); FindSuite(m_currentEquip);//找套装 }