static class
Items (shared-side)
Available since version: 0.1.0
This class represents item manager for conversion between item id & item instance.
This manager will work for every registered item in items.xml
file.
Properties
No properties.
Methods
id
Available since version: 0.1.0
This method will convert the item instance to item id.
int id(string itemInstance)
Parameters:
string
itemInstance: the item instance, e.g:"ITMI_GOLD"
.
Returns int
:
the unique item id.
name
Available since version: 0.1.0
This method will convert the item id to item instance.
string name(int itemId)
Parameters:
int
itemId: the item id.
Returns string
:
the item instance, e.g: "ITMI_GOLD"
.