Type Alias RoomStateEvents
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];
}
Type declaration
hint
Cost : [oldCost: number, newCost: number, oldPercentage: number, newPercentage: number]Updated Fires when the hint cost has been updated.
hint
Points : [oldValue: number, newValue: number]Updated Fires when the player's hint points value has updated.
location
Check : [oldValue: number, newValue: number]Points Updated Fires when the location check points have been updated.
locations
Checked : [locations: number[]]Fires when new locations have been checked (or all locations on initial connection).
password
Updated : [password: boolean]Fires when the room password has been toggled.
permissions
Updated : [oldValue: PermissionTable, newValue: PermissionTable]Fires when command permissions have been updated.
An interface with all supported room events and their respective callback arguments. To be called from RoomStateManager.