Skip to content

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

apps/client/src/ui/inventory-view ​

What the inventory strip and the container panel show, as pure data the game loop publishes (Overlay.tsx draws it): the slots of the player's inventory with each item's name and count (a weapon's rounds left with it) and the selected slot, and the container the player has open (a crate, a locker, a car's trunk, a body's pockets, a shop's stock with its prices) with its slots. Built from the server's inventory message and the room's items of the welcome.

Interfaces ​

Functions ​