Inventory.this

Creates an inventory with the given number of slots. The number of slots must be higher than 0 and shorter than 2^16.

  1. this(size_t size)
    class Inventory
    @safe
    this
    (
    size_t size
    )
  2. this(Slot[] slots)
  3. this(Inventory inventory)

Parameters

size size_t

the size of the inventory

Meta