Interface RoomUpdatePacket
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;
}
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
Optional Readonlychecked_locations
checked_locations ?: number[]
Might be a partial update, containing new locations that were checked, especially from a co-op partner in the same slot.
Readonlycmd
cmd
Optional Readonlyhint_cost
hint_cost ?: number
The amount of points it costs to receive a hint from the server.
Optional Readonlyhint_points
hint_points ?: number
Number of hint points that the current player has.
Optional Readonlylocation_check_points
location_check_points ?: number
The amount of hint points you receive per item/location check completed.
Optional Readonlypassword
password?: boolean
Denoted whether a password is required to join this room.
Readonlypermissions
Mapping of restrict-able commands to their current PermissionValue level.
Optional Readonlyplayers
Information on the players, whether connected or not.
Optional Readonlytags
tags?: string[]
Denotes special features or capabilities that the sender is capable of. Example: WebHost
Optional Readonlytime
time?: number
Unix time stamp of "now". Send for time synchronization if wanted for things like a DeathLink BouncePacket.
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.