The game object class for handling skills, items, weapons, and armor. It is required because save data should not include the database object itself.
Methods
- Initialize the itemName Type Description itemObject The item data object to convert to game item object 
- Check if this item is an armorReturns:Type Description boolean True if armor 
- Check if this item is an equip item (weapon or armor)Returns:Type Description boolean True if weapon or armor 
- Check if this item is an itemReturns:Type Description boolean True if item 
- Check if this item is nullReturns:Type Description boolean True if null 
- Check if this item is a skillReturns:Type Description boolean True if skill 
- Check if this item is usable (item or skill)Returns:Type Description boolean True if item or skill 
- Check if this item is a weaponReturns:Type Description boolean True if weapon 
- Get the item idReturns:Type Description number The item's id 
- Get the item data objectReturns:Type Description Object|null The item data object, or null if no item 
- Sets an equip itemName Type Description isWeaponboolean If the item is a weapon or armor itemIdnumber The item's id 
- Converts an item data object to an item game objectName Type Description itemObject The item data object to convert