skeldjs
    Preparing search index...

    Class RoomAssignRolesEvent<RoomType>

    Emitted when SkeldJS assigns roles to each player, just after a game is started. Can be canceled to avoid assigning roles entirely, or can be used to change which roles are assigned to which players.

    Does not guarantee that the players' roles have actually been assigned, see PlayerSetRoleEvent.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    canceled: boolean
    eventName: "room.assignroles" = ...
    roleAssignments: Map<Player<RoomType>, typeof BaseRole>

    The players that were chosen to be impostors.

    room: RoomType

    The room or client that the event came from.

    eventName: "room.assignroles" = ...

    Accessors

    Methods