Constructs an inventory giving an array of slots. The length of the inventory will be the same as the given array.
one or more slots
auto a = new Inventory(Slot(null)); auto b = new Inventory(Slot(null), Slot(null)); auto c = new Inventory([Slot(null), Slot(null)]);
See Implementation
Constructs an inventory giving an array of slots. The length of the inventory will be the same as the given array.