skeldjs
    Preparing search index...

    Class ElectricalSwitchFlipEvent<RoomType>

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

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    eventName: "electrical.switchflip" = ...
    flipped: boolean

    Whether this switch is flipped.

    message: undefined | RepairSystemMessage

    The message that this event originated from.

    player: undefined | Player<RoomType>

    The player that flipped the switch. Only available if the client is the host.

    reverted: boolean
    room: RoomType

    The room or client that the event came from.

    switchId: number

    The ID of the switch that was flipped (from left-to-right, starting at 0).

    switchsystem: SwitchSystem<RoomType>

    The electrical system that the event is for.

    eventName: "electrical.switchflip" = ...

    Accessors

    Methods