Class PlayerCheckColorEvent<RoomType>

Emitted when a player requests to have their color set. Only emitted if the client is the host.

Type Parameters

Hierarchy

  • CancelableEvent
    • PlayerCheckColorEvent

Implements

Properties

eventName: "player.checkcolor"
alteredColor: Color

The altered color, i.e. the original color was taken.

canceled: boolean
eventName: "player.checkcolor"
message: undefined | CheckColorMessage

The message that this event originated from.

originalColor: Color

The original color that the player asked for.

player: PlayerData<RoomType>

The player that this event is for.

room: RoomType

The room or client that the event came from.

Methods

  • Returns void

  • Change the altered color for the player to have set.

    Parameters

    • color: Color

      The color to set.

    Returns void

Constructors

  • Type Parameters

    Parameters

    • room: RoomType
    • player: PlayerData<RoomType>
    • message: undefined | CheckColorMessage
    • originalColor: Color

      The original color that the player asked for.

    • alteredColor: Color

      The altered color, i.e. the original color was taken.

    Returns PlayerCheckColorEvent<RoomType>

Generated using TypeDoc