Options
All
  • Public
  • Public/Protected
  • All
Menu

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

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.setstartcounter" = ...

eventName

eventName: "player.setstartcounter" = ...

Readonly message

message: undefined | SetStartCounterMessage

The message that this event originated from.

Readonly newCounter

newCounter: number

Readonly oldCounter

oldCounter: number

Readonly player

player: PlayerData<RoomType>

The player that this event is for.

Readonly room

room: RoomType

The room or client that the event came from.

Accessors

alteredCounter

  • get alteredCounter(): number

Constructors

constructor

Methods

revert

  • revert(): void

setCounter

  • setCounter(counter: number): void

Generated using TypeDoc