Example #1
0
 public ContainerInfo(DataInventoryContainer container)
 {
     InventorySlots    = new SlotInfo[] { };
     Id                = container.ContainerId;
     _allowedItemTypes = container.AllowedItemTypes;
     ContainerType     = Inventory.GetContainerTypeEnum(container);
     if (container.GetItemSlotsInfo(out SlotInfo[] inventorySlots))
     {
         InventorySlots = inventorySlots;
     }
 }