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

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

Screenshot

Screenshot: () => void

Type declaration

    • (): void
    • Returns void

optionalSyncRoomProperties

SyncRoomProperties?: (data: ServerChatRoomSyncMessage) => void

Type declaration

Methods

Click

  • Click(event: MouseEvent | TouchEvent): void
  • Called if the user clicks on the canvas


    Parameters

    • event: MouseEvent | TouchEvent

      The event that triggered this

    Returns void

optionalKeyDown

  • KeyDown(event: KeyboardEvent): boolean
  • Called if the the user presses any key


    Parameters

    • event: KeyboardEvent

      The event that triggered this

    Returns boolean

optionalMouseDown

  • MouseDown(event: MouseEvent | TouchEvent): void
  • 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

  • MouseMove(event: MouseEvent | TouchEvent): void
  • 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

  • MouseUp(event: MouseEvent | TouchEvent): void
  • 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

  • MouseWheel(event: WheelEvent): void
  • Called if the user moves the mouse wheel on the canvas


    Parameters

    • event: WheelEvent

      The event that triggered this

    Returns void

Run

  • Run(time: number): void
  • Called each frame


    Parameters

    • time: number

      The current time for frame

    Returns void