Interface ReceivedItemsPacket

Sent to clients when they receive an item.

interface ReceivedItemsPacket {
    cmd: "ReceivedItems";
    index: number;
    items: NetworkItem[];
}

Properties

Properties

cmd
index: number

The next empty slot in the list of items for the receiving client. Useful for tracking items.

items: NetworkItem[]

The items which the client is receiving.