ItemInstance beta
Interface of @v12-engine/engine
ts
export interface ItemInstanceAn item someone carries
Members
charges
ts
charges: number;Uses left, for items that run out
data
ts
data?: Record<string, unknown>;State of the game's own about this one item: kills it has seen, what it has stored. Plain data: it is saved
id
ts
id: number;The item instance's number, unique in its world
item
ts
item: string;The id of the item type
refill
ts
refill?: number;Seconds until its next charge comes back, for an item that refills over time (ItemDef.refill) while it is short
state
ts
state?: AbilityState;Cooldown of the ability the item gives