Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectricalSwitchFlipEvent<RoomType>

Emitted when a player flips a switch while Electrical is sabotaged.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "electrical.switchflip" = ...

eventName

eventName: "electrical.switchflip" = ...

Readonly flipped

flipped: boolean

Readonly message

message: undefined | RepairSystemMessage

The message that this event originated from.

Readonly player

player: undefined | PlayerData<RoomType>

reverted

reverted: boolean

Readonly room

room: RoomType

The room or client that the event came from.

Readonly switchId

switchId: number

Readonly switchsystem

switchsystem: SwitchSystem<RoomType>

The electrical system that the event is for.

Accessors

alteredFlipped

  • get alteredFlipped(): boolean

alteredSwitchId

  • get alteredSwitchId(): number

Constructors

constructor

Methods

revert

  • revert(): void

setFlipped

  • setFlipped(flipped: boolean): void

setSwitchId

  • setSwitchId(switchId: number): void

Generated using TypeDoc