Skip to main content

ChatRoomView

Hierarchy

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

Index

Properties

optionalActivate

Activate?: () => void

Type declaration

    • (): void
    • Returns void

optionalCanLeave

CanLeave?: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

optionalCanStartWhisper

CanStartWhisper?: (C: Character) => boolean

Type declaration

Click

Called if the user clicks on the canvas

@param

The event that triggered this

optionalDeactivate

Deactivate?: () => void

Type declaration

    • (): void
    • Returns void

DisplayMessage

DisplayMessage: (data: ServerChatRoomMessage, msg: string, SenderCharacter: Character, metadata: IChatRoomMessageMetadata) => string

Type declaration

Draw

Draw: () => void

Type declaration

    • (): void
    • Returns void

DrawUi

DrawUi: () => void

Type declaration

    • (): void
    • Returns void

optionalKeyDown

Called if the the user presses any key

@param

The event that triggered this

optionalMouseDown

MouseDown?: MouseEventListener

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

@param

The event that triggered this

optionalMouseMove

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

optionalMouseUp

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

@param

The event that triggered this

optionalMouseWheel

Called if the user moves the mouse wheel on the canvas

@param

The event that triggered this

Run

Called each frame

@param

The current time for frame

Screenshot

Screenshot: () => void

Type declaration

    • (): void
    • Returns void

optionalSyncRoomProperties

SyncRoomProperties?: (data: ServerChatRoomSyncMessage) => void

Type declaration