Class Models.Item
The Item class is a model that maps game items and their properties.
Just like any other model, it's used to standardize the way addons interact with game objects, especially when item information is passed as a parameter to methods, events, datasets, etc.
This model will grow over time as new expansions are released and new features are implemented in the library.
Methods
models.item:setId (value) | Sets the item id. |
models.item:setName (value) | Sets the item name. |
Metamethods
models.item:__construct () | Item constructor. |
Methods
- models.item:setId (value)
-
Sets the item id.
Parameters:
- value int the item's id
Returns:
-
Models.Item
self
- models.item:setName (value)
-
Sets the item name.
Parameters:
- value string the item's name
Returns:
-
Models.Item
self