Class GameDataAddPlayerEvent<RoomType>

Emitted when a player is added to gamedata.

Type Parameters

Hierarchy

  • RevertableEvent
    • GameDataAddPlayerEvent

Implements

Properties

Constructors

Methods

Properties

eventName: "gamedata.addplayer"
eventName: "gamedata.addplayer"
gamedata: GameData<RoomType>

The gamedata object that this event is for.

player: PlayerInfo<RoomType>

The player information that was added.

reverted: boolean
room: RoomType

The room or client that the event came from.

Constructors

  • Type Parameters

    Parameters

    • room: RoomType
    • gamedata: GameData<RoomType>
    • player: PlayerInfo<RoomType>

      The player information that was added.

    Returns GameDataAddPlayerEvent<RoomType>

Methods

  • Returns void

Generated using TypeDoc