Пример #1
0
 public InventorySystem()
 {
     Content    = new ItemSlot[14];
     Content[0] = new HelmetSlot();
     Content[1] = new ChestSlot();
     Content[2] = new LegSlot();
     Content[3] = new FootSlot();
     Content[4] = new WeaponSlot();
     Content[5] = new RingSlot();
     Content[6] = new RingSlot();
     Content[7] = new TrinketSlot();
     Content[8] = new TrinketSlot();
     for (int i = 9; i < 14; i++)
     {
         Content[i] = new InventorySlot();
     }
 }
Пример #2
0
        public InventorySystem(Item[] items, double money)
        {
            Money      = money;
            Content    = new ItemSlot[14];
            Content[0] = new HelmetSlot();
            Content[1] = new ChestSlot();
            Content[2] = new LegSlot();
            Content[3] = new FootSlot();
            Content[4] = new WeaponSlot();
            Content[5] = new RingSlot();
            Content[6] = new RingSlot();
            Content[7] = new TrinketSlot();
            Content[8] = new TrinketSlot();
            for (int i = 9; i < 14; i++)
            {
                Content[i] = new InventorySlot();
            }

            for (int i = 0; i < 14; i++)
            {
                Content[i].slotItem = items[i];
            }
        }