示例#1
0
 public static SmartSlot[] SmartSlotsFromWrappers(SlotWrapper[] wrappers)
 {
     SmartSlot[] smartSlots = new SmartSlot[5];
     for (int i = 0; i < 4; ++i)
     {
         SmartSlot smartSlot = GetSmartSlot(wrappers, i);
         if (smartSlot.SlotType != WeaponData.Slot.Empty)
         {
             smartSlots[(int)smartSlot.SlotType] = smartSlot;
         }
         else
         {
             break;
         }
     }
     return(smartSlots);
 }
示例#2
0
 public static SmartSlot[] SmartSlotsFromWrappers(SlotWrapper[] wrappers)
 {
     SmartSlot[] smartSlots = new SmartSlot[5];
     for (int i = 0; i < 4; ++i)
     {
         SmartSlot smartSlot = GetSmartSlot(wrappers, i);
         if (smartSlot.SlotType != WeaponData.Slot.Empty)
             smartSlots[(int)smartSlot.SlotType] = smartSlot;
         else
             break;
     }
     return smartSlots;
 }