Files
bworld/client/inventory.ts
T
2026-09-24 19:34:07 -03:00

12 lines
363 B
TypeScript

import { Container, Cursor } from "$/common/inventory.ts";
// the local copies of the containers the server syncs to this player
export class ClientInventories {
inventory = new Container(9 * 4);
crafting = new Container(10);
// the open server screen's container
screen: Container | undefined;
cursor: Cursor = { item: undefined };
hotbar_selected = 0;
}