Class DoorsDoorCloseEvent<RoomType>

Emitted when a player closes a specific door.

Type Parameters

Hierarchy

  • RevertableEvent
    • DoorsDoorCloseEvent

Implements

Properties

eventName: "doors.close"
door: Door<RoomType>

The door that the player closed.

doorsystem: AutoDoorsSystem<RoomType> | DoorsSystem<RoomType> | ElectricalDoorsSystem<RoomType>

The door system that the door is in.

eventName: "doors.close"
message: undefined | RepairSystemMessage

The message that this event originated from.

player: undefined | PlayerData<RoomType>

The player that closed the door. Only available if the client is the host.

reverted: boolean
room: RoomType

The room or client that the event came from.

Accessors

  • get alteredDoor(): Door<RoomType>
  • The alternate door that will be closed, if changed.

    Returns Door<RoomType>

Constructors

Methods

  • Returns void

  • Change the door that was closed.

    Parameters

    • door: number | Door<RoomType>

      The door to close.

    Returns void

Generated using TypeDoc