// Token: 0x06002FA4 RID: 12196 RVA: 0x000B77CC File Offset: 0x000B59CC
 protected override void ConfigureSlots(int totalCount, ref global::Inventory.Slot.KindDictionary <global::Inventory.Slot.Range> ranges, ref global::Inventory.SlotFlags[] flags)
 {
     global::Inventory.Slot.KindDictionary <global::Inventory.Slot.Range> kindDictionary = default(global::Inventory.Slot.KindDictionary <global::Inventory.Slot.Range>);
     kindDictionary[global::Inventory.Slot.Kind.Belt]    = new global::Inventory.Slot.Range(0, 3);
     kindDictionary[global::Inventory.Slot.Kind.Default] = new global::Inventory.Slot.Range(3, totalCount - 3);
     ranges = kindDictionary;
     global::Inventory.SlotFlags[] array = new global::Inventory.SlotFlags[totalCount];
     for (int i = 0; i < 3; i++)
     {
         array[i] |= global::Inventory.SlotFlags.Cooked;
     }
     for (int j = 3; j < 6; j++)
     {
         array[j] |= global::Inventory.SlotFlags.Raw;
     }
     array[6] |= global::Inventory.SlotFlags.FuelBasic;
     array[7] |= global::Inventory.SlotFlags.Debris;
     flags     = array;
 }
Exemple #2
0
        // Token: 0x06003AA4 RID: 15012 RVA: 0x000CDD44 File Offset: 0x000CBF44
        static LateLoaded()
        {
            for (int i = 0; i < 40; i++)
            {
                global::Inventory.SlotFlags slotFlags = (global::Inventory.SlotFlags) 0;
                if (global::PlayerInventory.IsBeltSlot(i))
                {
                    slotFlags |= global::Inventory.SlotFlags.Belt;
                }
                if (i == 30)
                {
                    slotFlags |= global::Inventory.SlotFlags.Safe;
                }
                if (global::PlayerInventory.IsEquipmentSlot(i))
                {
                    slotFlags |= global::Inventory.SlotFlags.Equip;
                    switch (i)
                    {
                    case 36:
                        slotFlags |= global::Inventory.SlotFlags.Head;
                        break;

                    case 37:
                        slotFlags |= global::Inventory.SlotFlags.Chest;
                        break;

                    case 38:
                        slotFlags |= global::Inventory.SlotFlags.Legs;
                        break;

                    case 39:
                        slotFlags |= global::Inventory.SlotFlags.Feet;
                        break;
                    }
                }
                global::PlayerInventory.LateLoaded.EveryPlayerInventory[i] = slotFlags;
            }
            global::PlayerInventory.LateLoaded.SlotRanges[global::Inventory.Slot.Kind.Default] = new global::Inventory.Slot.Range(0, 30);
            global::PlayerInventory.LateLoaded.SlotRanges[global::Inventory.Slot.Kind.Belt]    = new global::Inventory.Slot.Range(30, 6);
            global::PlayerInventory.LateLoaded.SlotRanges[global::Inventory.Slot.Kind.Armor]   = new global::Inventory.Slot.Range(36, 4);
        }
 // Token: 0x06002FA5 RID: 12197 RVA: 0x000B7878 File Offset: 0x000B5A78
 protected override bool CheckSlotFlags(global::Inventory.SlotFlags itemSlotFlags, global::Inventory.SlotFlags slotFlags)
 {
     return((itemSlotFlags & slotFlags) != (global::Inventory.SlotFlags) 0);
 }
Exemple #4
0
 // Token: 0x06003A98 RID: 15000 RVA: 0x000CDAC4 File Offset: 0x000CBCC4
 protected override bool CheckSlotFlags(global::Inventory.SlotFlags itemSlotFlags, global::Inventory.SlotFlags slotFlags)
 {
     return(base.CheckSlotFlags(itemSlotFlags, slotFlags) && ((slotFlags & global::Inventory.SlotFlags.Equip) != global::Inventory.SlotFlags.Equip || (itemSlotFlags & slotFlags) == slotFlags));
 }