Constructor
# new RezSlot()
Represents a kind of place in an inventory. Each position of an
inventory (declared with a @contains block) names the slot it uses, and the slot
decides what the position accepts (accepts), how much it holds (has_capacity,
capacity), which other slots it excludes (excludes), and whether items in it
apply their effects (apply_effects). Several positions can use the same slot.
A slot also receives the insert and remove events for items added to, or
removed from, any position that uses it.
Extends
Methods
# static constructor(id, attributes)
Creates a new inventory slot instance
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string
|
unique identifier for this slot |
attributes |
object
|
slot attributes from Rez compilation including capacity and restrictions |