Exemplo n.º 1
0
 // Token: 0x06003A94 RID: 14996 RVA: 0x000CD9C0 File Offset: 0x000CBBC0
 protected override void ConfigureSlots(int totalCount, ref global::Inventory.Slot.KindDictionary <global::Inventory.Slot.Range> ranges, ref global::Inventory.SlotFlags[] flags)
 {
     if (totalCount != 40)
     {
         Debug.LogError("Invalid size for player inventory " + totalCount, this);
     }
     ranges = global::PlayerInventory.LateLoaded.SlotRanges;
     flags  = global::PlayerInventory.LateLoaded.EveryPlayerInventory;
     if (base.networkView.isMine)
     {
         this._boundBPs = new List <global::BlueprintDataBlock>();
     }
 }
 // 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;
 }