Class HqHudConsoleOpenEvent<RoomType>

Emitted when a player opens a communications console on Mira HQ.

Type Parameters

Hierarchy

  • RevertableEvent
    • HqHudConsoleOpenEvent

Implements

Properties

eventName: "hqhud.consoles.open"
consoleId: number

The ID of the console that was opened.

eventName: "hqhud.consoles.open"
hqhudsystem: HqHudSystem<RoomType>

The Mira HQ communications system that this event is for.

message: undefined | RepairSystemMessage

The message that this event originated from.

player: PlayerData<RoomType>

The player that opened the console.

reverted: boolean
room: RoomType

The room or client that the event came from.

Accessors

  • get alteredConsoleId(): number
  • The alternate console ID that will be opened, if changed.

    Returns number

  • get alteredPlayer(): PlayerData<RoomType>
  • The alternate player that will open the console, if changed.

    Returns PlayerData<RoomType>

Constructors

Methods

  • Returns void

  • Change the ID of the console that was opened.

    Parameters

    • consoleId: number

      The ID of the console to open.

    Returns void

  • Change the player that opened the console.

    Parameters

    • player: PlayerData<RoomType>

      The player to open the console.

    Returns void

Generated using TypeDoc