Game_Item.d overview
Table of contents
utils
Game_Item (class)
Game_Item
The game object class for handling skills, items, weapons, and armor. It is // required because save data should not include the database object itself.
Signature
export declare class Game_Item<T> {
constructor(item?: T | null)
}
isSkill (method)
Signature
isSkill(): boolean
isItem (method)
Signature
isItem(): boolean
isUsableItem (method)
Signature
isUsableItem(): boolean
isWeapon (method)
Signature
isWeapon(): boolean
isArmor (method)
Signature
isArmor(): boolean
isEquipItem (method)
Signature
isEquipItem(): boolean
isNull (method)
Signature
isNull(): boolean
itemId (method)
Signature
itemId(): number
object (method)
Signature
object(): T
setObject (method)
Signature
setObject(item: T | null): void
setEquip (method)
Signature
setEquip(isWeapon: boolean, itemId: number): void
_dataClass (property)
Signature
_dataClass: '' | 'skill' | 'item' | 'weapon' | 'armor'
_itemId (property)
Signature
_itemId: number