Class PlayerSetStartCounterEvent<RoomType>

Emitted when a player (i.e. the host of the room) sets the starting counter located above the game code while in the lobby.

Type Parameters

Hierarchy

  • BasicEvent
    • PlayerSetStartCounterEvent

Implements

Properties

eventName: "player.setstartcounter"
eventName: "player.setstartcounter"
message: undefined | SetStartCounterMessage

The message that this event originated from.

newCounter: number

The new value of the counter.

oldCounter: number

The old value of the counter.

player: PlayerData<RoomType>

The player that this event is for.

room: RoomType

The room or client that the event came from.

Accessors

  • get alteredCounter(): number
  • The altered value of the counter that will be set instead, if changed,

    Returns number

Constructors

Methods

  • Revert the counter to its old value.

    Returns void

  • Change the value of the counter that was set.

    Parameters

    • counter: number

      The value of the counter to set.

    Returns void

Generated using TypeDoc