Type Alias RoomStateEvents
type RoomStateEvents = {
hintCostUpdated: [
oldCost: number,
newCost: number,
oldPercentage: number,
newPercentage: number,
];
hintPointsUpdated: [oldValue: number, newValue: number];
locationCheckPointsUpdated: [oldValue: number, newValue: number];
locationsChecked: [locations: number[]];
passwordUpdated: [password: boolean];
permissionsUpdated: [oldValue: PermissionTable, newValue: PermissionTable];
}
hintCostUpdated: [
oldCost: number,
newCost: number,
oldPercentage: number,
newPercentage: number,
];
hintPointsUpdated: [oldValue: number, newValue: number];
locationCheckPointsUpdated: [oldValue: number, newValue: number];
locationsChecked: [locations: number[]];
passwordUpdated: [password: boolean];
permissionsUpdated: [oldValue: PermissionTable, newValue: PermissionTable];
}
Properties
hintCostUpdated
hintCostUpdated: [
oldCost: number,
newCost: number,
oldPercentage: number,
newPercentage: number,
]
oldCost: number,
newCost: number,
oldPercentage: number,
newPercentage: number,
]
Fires when the hint cost has been updated.
hintPointsUpdated
hintPointsUpdated: [oldValue: number, newValue: number]
Fires when the player's hint points value has updated.
locationCheckPointsUpdated
locationCheckPointsUpdated: [oldValue: number, newValue: number]
Fires when the location check points have been updated.
locationsChecked
locationsChecked: [locations: number[]]
Fires when new locations have been checked (or all locations on initial connection).
passwordUpdated
passwordUpdated: [password: boolean]
Fires when the room password has been toggled.
permissionsUpdated
Fires when command permissions have been updated.
An interface with all supported room events and their respective callback arguments. To be called from RoomStateManager.