Item
Class in SurvivEngine.Items namespace
Class in SurvivEngine.Items namespace
Represents an item instance in the game.
Read-Only
The item data asset this item is associated with.
Read-Only
The icon of this item shown in the inventory.
Gets or sets the custom name of this item instance.
Read-Only
The base name of the item from its item data asset.
Gets the custom name if assigned or the base name. Sets the custom name.
Read-Only
The count of this item instance.
Gets or sets the durability of this item instance.
Read-Only
The item's item database ID.
Read-Only
The maximum count allowed in a slot for this item.
Read-Only
The maximum durability allowed for this item.
Called when the count of this item changes. Arguments are the old and the new count respectively.
Called when the durability of this item changes. Arguments are the old and the new durability respectively.
Instantiates the prefab associated with this item.
Determines whether or not this item can be stacked together in item slots.
Performs the action sequences of this item.
user The user of this item.
performAll Whether or not to perform all the action sequences or just the first successful one.
contextFlags The context in which this item is being used.
Adds the specified amount to this item's count.
Clamped at the maximum count value.
amount The amount to add.
Removes the specified amount from this item's count.
amount The amount to remove.