12 lines
363 B
TypeScript
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;
|
|
}
|