RoomFlags extension type

Flags configuring the behavior of a room.

on

Constructors

RoomFlags([int value = 0])
const
RoomFlags.build({bool darkRoom = false, bool playerVisibility = false, bool switchHostOnLeave = false})
Builds a RoomFlags instance with specified options.

Properties

isDarkRoom → bool
Whether the room is a dark room.
no setter
isPlayerVisibility → bool
Whether player visibility features are enabled.
no setter
isSwitchHostOnLeave → bool
Whether the host role switches when the host leaves.
no setter
value → int
final

Methods

withValues({bool? darkRoom, bool? playerVisibility, bool? switchHostOnLeave}) → RoomFlags
Returns a new RoomFlags with updated values.

Constants

darkRoomFlag → const int
Flag indicating if the room is "dark" (e.g., specific visibility rules).
playerVisibilityFlag → const int
Flag indicating if player visibility is enabled.
switchHostOnLeaveFlag → const int
Flag indicating if the host should switch when the current host leaves.