The dirty state of this component.
Flags for this object, see SpawnFlag.
The net ID of this component.
The ID of the owner of this component.
The player that this component belongs to.
The room that this component belongs to.
The type of object that this component belongs to.
Randomly assign players to each enabled role with a certain probability. Called just after a game is started and emits a RoomAssignRolesEvent which can be used to alter which players are assigned which roles.
Actually set all player roles from a map of player to role assignments, can be gathered from InnerShipStatus.getRoleAssignmentsForTeam.
A map of player to role assignments to assign to every role.
Randomly assign tasks to all players, using data from @skeldjs/data.
Whether or not this object
Despawns the component from the room it belongs in.
Get a certain component from the object.
Get the door IDs used to connect to a room.
Assign a list of roles to a pool of players, eliminating both players from the player list and also roles from the role list, and without regard for room settings (i.e. the chances of each role appearing or the maximum number of assignments for the role).
The pool of players to assign a list of roles to.
The maximum number of players that cn be assigned a role from this list.
The list of roles to assign to players.
A map of role assigments (i.e. a map of player to roles) to act as a collective output to this method.
The role assignments (i.e. a map of player to roles) that have either collectively been assigned (if roleAssignments is passed) or been assigned just as part of this method.
Specifically assign a pool of players to each role in a specific team.
The entire list of players that can be assigned a role, whether or not they already have a role. Note that this is not a list of players to be assigned a role from this team, but it is instead every possible player who could be assigned one.
Role settings to use when calculating how many players should assigned a specific role.
The team of roles to assign.
The maximum number of players that can be assigned a role from this team. For example, it could be the set number of impostors configured in the game settings.
The default role to assign to each player
A map of role assigments (i.e. a map of player to roles) to act as a collective output to this method.
The role assignments (i.e. a map of player to roles) that have either collectively been assigned (if roleAssignments is passed) or been assigned just as part of this method.
Specifically assign a pool of players to each role in a list, with regard to the room settings (i.e. the chance of each role appearing or the maximum number of assignments for the role).
The entire list of players that can be assigned a role, whether or not they already have a role. Note that this is not a list of players to be assigned a role from this team, but it is instead every possible player who could be assigned one.
Role settings to use when calculating how many players should assigned a specific role.
The maximum number of players that can be assigned a role from this team. For example, it could be the set number of impostors configured in the game settings.
The default role to assign to each player
A map of role assigments (i.e. a map of player to roles) to act as a collective output to this method.
The role assignments (i.e. a map of player to roles) that have either collectively been assigned (if roleAssignments is passed) or been assigned just as part of this method.
Get the spawn position of a player whether they are about to spawn after starting or whether they are about to spawn after a meeting.
The player or player ID to determine the position of.
Whther or not this is a spawn after starting the game.
The spawn position of the player.
Get all tasks for this map.
Get all roles registered on the room that match a given filter.
The filter to match against.
A list of all roles that satisfy the given filter.
Spawn this component if does not exist in the room it belongs in.
Teleport a player to their spawn position, calculated using InnerShipStatus.getSpawnPosition.
The player to determine the position of.
Whether or not this is a spawn after starting the game.
Try to assign a ghost role to a specific dead player.
The player to assign the role to.
Generated using TypeDoc
Represents a room object for the April Fools' version of the The Skeld map.
See ShipStatusEvents for events to listen to.