Determine what Equipment
is stowed in the given position.
Determine what Equipment
is stowed in the given position.
the Equipment
in this slot
Attempt to stow an item at the given position.
Attempt to stow an item at the given position.
the change in Equipment
for this slot
the Equipment
in this slot
Attempt to stow an item at the given position.
Attempt to stow an item at the given position.
the change in Equipment
for this slot
the Equipment
in this slot
Not allowed to change the slot size manually.
Not allowed to change the slot size manually.
the changed in capacity for this slot
the capacity for this slot
A slot-like interface for a specific grid position in an inventory. The size is typically bound to anything that can be stowed which encompasses most all
Equipment
. The capacity of thisEquipmentSlot
is essentially treated as 1x1. Upon insertions, however, the capacity temporarily is treated as the size of the item being inserted (unlessNone
). This allows a proper check for insertion collision.Rather than operating on a fixed-size slot, this "slot" represents an inventory region that either includes
slot
or starts atslot
. When determining the contents of the inventory atslot
, only that singular cell is checked. When removing an item fromslot
, the item in inventory only has to be positioned in such a way that overlaps withslot
. When adding an item toslot
,slot
is treated as the upper left corner (the initial point) of a larger capacity region.The following diagrams demonstrate the coordinate association:
- - - - - - - - - - - - - - -
- - - - - - r r x - - - - - -
- - s - - - r r x - - - i i -
- - - - - - x x x - - - i i -
- - - - - - - - - - - - - - -
... where 's' is the 1x1 slot, 'r' is the corner of any 2x2 item that can be removed ('x' is a potential affected edge), and 'i' is the region checked for a 2x2 insertion into
slot
.