Class MeetingHudVoteCastEvent<RoomType>

Emitted when a player casts a vote on another player or skips vote in a meeting.

Type Parameters

Hierarchy

  • RevertableEvent
    • MeetingHudVoteCastEvent

Implements

Properties

eventName: "meeting.castvote"
eventName: "meeting.castvote"
meetinghud: MeetingHud<RoomType>

The meeting handler that this event is for.

message: undefined | CastVoteMessage

The message that this event originated from.

reverted: boolean
room: RoomType

The room or client that the event came from.

suspect: undefined | PlayerData<RoomType>

The player that the voter voted for.

voter: PlayerData<RoomType>

The player that cast the vote.

Accessors

  • get alteredSuspect(): undefined | PlayerData<RoomType>
  • The altered player that the voter voted for instead, if changed.

    Returns undefined | PlayerData<RoomType>

  • get alteredVoter(): PlayerData<RoomType>
  • The altered player that will cast the vote instead, if changed.

    Returns PlayerData<RoomType>

  • get didSkip(): boolean
  • Whether the voter skipped the vote.

    Returns boolean

Constructors

Methods

  • Returns void

  • Change the player that the voter voted for.

    Parameters

    • suspect: PlayerData<RoomType>

      The player for the voter to vote for.

    Returns void

  • Change the player that cast the vote.

    Parameters

    • voter: PlayerData<RoomType>

      The player to cast the vote.

    Returns void

Generated using TypeDoc