Interface RoomUpdatePacket

Sent when there is a need to update information about the present game session. Generally useful for async games. Once authenticated, this may also contain data from ConnectedPacket.

All arguments for this packet are optional, only changes are sent.

interface RoomUpdatePacket {
    checked_locations?: number[];
    cmd: "RoomUpdate";
    hint_cost?: number;
    hint_points?: number;
    location_check_points?: number;
    password?: boolean;
    permissions: PermissionTable;
    players?: NetworkPlayer[];
    tags?: string[];
    time?: number;
}

Properties

checked_locations?: number[]

Might be a partial update, containing new locations that were checked, especially from a co-op partner in the same slot.

cmd
hint_cost?: number

The amount of points it costs to receive a hint from the server.

hint_points?: number

Number of hint points that the current player has.

location_check_points?: number

The amount of hint points you receive per item/location check completed.

password?: boolean

Denoted whether a password is required to join this room.

permissions: PermissionTable

Mapping of restrict-able commands to their current PermissionValue level.

players?: NetworkPlayer[]

Information on the players, whether connected or not.

tags?: string[]

Denotes special features or capabilities that the sender is capable of. Example: WebHost

time?: number

Unix time stamp of "now". Send for time synchronization if wanted for things like a DeathLink BouncePacket.