Class PlayerVoteArea<RoomType>
Methods
Static
Deserialize
- Deserialize<RoomType>(reader: HazelReader, meetinghud: MeetingHud<RoomType>, playerId: number): PlayerVoteArea<RoomType>
-
Serialize
- Serialize(writer: HazelWriter): void
-
Returns void
clearVote
- clearVote(): void
-
Returns void
setMissed
- setMissed(): void
-
Returns void
setSkipped
- setSkipped(): void
-
Returns void
setSuspect
- setSuspect(playerId: number): void
-
Returns void
Accessors
canVote
- get canVote(): boolean
-
Returns boolean
didSkip
- get didSkip(): boolean
-
Returns boolean
dirty
- get dirty(): boolean
-
Returns boolean
- set dirty(value: boolean): void
-
Returns void
hasVoted
- get hasVoted(): boolean
-
Returns boolean
player
- get player(): undefined | PlayerData<RoomType>
-
Returns undefined | PlayerData<RoomType>
votedFor
- get votedFor(): undefined | PlayerData<RoomType>
-
Returns undefined | PlayerData<RoomType>
Constructors
constructor
- new PlayerVoteArea<RoomType>(meetinghud: MeetingHud<RoomType>, playerId: number, votedForId: number, didReport: boolean): PlayerVoteArea<RoomType>
-
Parameters
-
meetinghud: MeetingHud<RoomType>
-
playerId: number
-
votedForId: number
-
didReport: boolean
Properties
didReport
didReport: boolean
Readonly
meetinghud
playerId
playerId: number
votedForId
votedForId: number
Whether this player skipped voting.