Skip to main content

ChatRoomView

Hierarchy

  • Pick<ScreenFunctions, Run | MouseDown | MouseUp | MouseMove | MouseWheel | Click | Draw | KeyDown | KeyUp>
    • ChatRoomView

Index

Properties

optionalActivate

Activate?: () => void

Type declaration

    • (): void
    • Returns void

optionalCanLeave

CanLeave?: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

optionalCanStartWhisper

CanStartWhisper?: (C) => boolean

Type declaration

    • (C): boolean

inheritedClick

Called if the user clicks on the canvas

@param

The event that triggered this

optionalDeactivate

Deactivate?: () => void

Type declaration

    • (): void
    • Returns void

Draw

Draw: () => void

Called each frame when the screen needs to be drawn.


Type declaration

    • (): void
    • Returns void

DrawUi

DrawUi: () => void

Type declaration

    • (): void
    • Returns void

optionalinheritedKeyDown

Called if the the user presses any key

@param

The event that triggered this

optionalinheritedKeyUp

Called if the user releases a pressed key

@param

The event that triggered this

optionalinheritedMouseDown

MouseDown?: MouseEventListener

Called if the user presses the mouse button or touches the touchscreen on the canvas

@param

The event that triggered this

optionalinheritedMouseMove

MouseMove?: MouseEventListener

Called if the user moves the mouse cursor or the touch on the touchscreen over the canvas

@param

The event that triggered this

optionalinheritedMouseUp

Called if the user releases the mouse button or the touchscreen on the canvas

@param

The event that triggered this

optionalinheritedMouseWheel

Called if the user moves the mouse wheel on the canvas

@param

The event that triggered this

inheritedRun

Called each frame

@param

The current time for frame

Screenshot

Screenshot: () => void

Type declaration

    • (): void
    • Returns void

optionalSyncRoomProperties

SyncRoomProperties?: (data) => void

Type declaration