示例#1
0
 private void OnQuery_SELECT()
 {
     selectInventoryIndex = (int)GameSection.GetEventData();
     if (selectInventoryIndex == -1)
     {
         selectedUniqueId[equipIndex] = 0uL;
     }
     else
     {
         EquipItemSortData equipItemSortData = localInventoryEquipData[selectInventoryIndex] as EquipItemSortData;
         if (equipItemSortData.IsFavorite())
         {
             GameSection.ChangeEvent("NOT_SELECT_FAVORITE", null);
             return;
         }
         if (equipItemSortData.IsEquipping())
         {
             GameSection.ChangeEvent("NOT_SELECT_EQUIPPING", null);
             return;
         }
         if (equipItemSortData.GetLevel() < needLv)
         {
             GameSection.ChangeEvent("NOT_SELECT_LOW_LEVEL", null);
             return;
         }
         selectedUniqueId[equipIndex] = equipItemSortData.GetUniqID();
     }
     GameSection.SetEventData(selectedUniqueId);
 }