Skip to content

five-on-it / apps/client/src/ui/inventory-view / SlotView

Interface: SlotView ​

Defined in: apps/client/src/ui/inventory-view.ts:16

One slot as the overlay draws it: the item's id and name and how many; an empty slot has none.

Properties ​

count ​

count: number

Defined in: apps/client/src/ui/inventory-view.ts:22

How many (0 in an empty slot).


id ​

id: string

Defined in: apps/client/src/ui/inventory-view.ts:18

The item's id; empty for an empty slot.


name ​

name: string

Defined in: apps/client/src/ui/inventory-view.ts:20

The item's name; empty for an empty slot.


rounds? ​

optional rounds?: number

Defined in: apps/client/src/ui/inventory-view.ts:24

A weapon's rounds left: its ammunition in the whole inventory, pouch and all (none for what spends no ammunition of its own).