Class ReactorConsoleAddEvent<RoomType>

Emitted when a player places their hand on a reactor console.

Type Parameters

Hierarchy

  • RevertableEvent
    • ReactorConsoleAddEvent

Implements

Properties

eventName: "reactor.consoles.add"
consoleId: number

The ID of the console that the player placed their hand on.

eventName: "reactor.consoles.add"
message: undefined | RepairSystemMessage

The message that this event originated from.

player: undefined | PlayerData<RoomType>

The player that placed their hand on the console. Only available if the client is the host.

reactor: ReactorSystem<RoomType>

The reactor system that this event is for.

reverted: boolean
room: RoomType

The room or client that the event came from.

Accessors

  • get alteredConsoleId(): number
  • The ID of the altered console that will be added instead, if changed.

    Returns number

Constructors

  • Type Parameters

    Parameters

    • room: RoomType
    • reactor: ReactorSystem<RoomType>
    • message: undefined | RepairSystemMessage
    • player: undefined | PlayerData<RoomType>

      The player that placed their hand on the console. Only available if the client is the host.

    • consoleId: number

      The ID of the console that the player placed their hand on.

    Returns ReactorConsoleAddEvent<RoomType>

Methods

  • Returns void

  • Change the console that the player placed their hand on.

    Parameters

    • consoleId: number

      The ID of the console to set.

    Returns void

Generated using TypeDoc