ChatRoomView
Hierarchy
- Pick<ScreenFunctions, Run | MouseDown | MouseUp | MouseMove | MouseWheel | Click | Draw | KeyDown>
- ChatRoomView
Index
Properties
optionalActivate
Type declaration
Returns void
optionalCanLeave
Type declaration
Returns boolean
optionalCanStartWhisper
Type declaration
Parameters
C: Character
Returns boolean
optionalDeactivate
Type declaration
Returns void
DisplayMessage
Type declaration
Parameters
data: ServerChatRoomMessage
msg: string
SenderCharacter: Character
metadata: IChatRoomMessageMetadata
Returns string
Draw
Type declaration
Returns void
DrawUi
Type declaration
Returns void
Screenshot
Type declaration
Returns void
optionalSyncRoomProperties
Type declaration
Parameters
Returns void
Methods
Click
Parameters
event: MouseEvent | TouchEvent
The event that triggered this
Returns void
optionalKeyDown
Called if the the user presses any key
Parameters
event: KeyboardEvent
The event that triggered this
Returns boolean
optionalMouseDown
Called if the user presses the mouse button or touches the touchscreen on the canvas
Parameters
event: MouseEvent | TouchEvent
The event that triggered this
Returns void
optionalMouseMove
Called if the user moves the mouse cursor or the touch on the touchscreen over the canvas
Parameters
event: MouseEvent | TouchEvent
The event that triggered this
Returns void
optionalMouseUp
Called if the user releases the mouse button or the touchscreen on the canvas
Parameters
event: MouseEvent | TouchEvent
The event that triggered this
Returns void
optionalMouseWheel
Called if the user moves the mouse wheel on the canvas
Parameters
event: WheelEvent
The event that triggered this
Returns void
Run
Called each frame
Parameters
time: number
The current time for frame
Returns void
Called if the user clicks on the canvas