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); }
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; }