Skip to content

ItemSlot beta ​

Interface of @v12-engine/client

ts
export interface ItemSlot

A slot of an inventory

Members ​

charges ​

ts
charges: number;

Uses left, for an item with charges

cooldown ​

ts
cooldown: number;

Part of the cooldown that is still to go, 0..1

description ​

ts
description?: string;

What the item does, in words, for its tooltip

icon ​

ts
icon?: string;

Its picture (IconSet.items)

id ​

ts
id: number;

Id of the inventory slot, unique among the slots shown

item ​

ts
item: string;

Which item it is

name ​

ts
name: string;

The item's name as the player reads it

seconds ​

ts
seconds: number;

Seconds until it can be used again

sells ​

ts
sells: number;

What a shop nearby would give for it

usable ​

ts
usable: boolean;

Does something when used, as opposed to while carried