Class SpawnedEventArgs
Contains all information after spawning a player.
public class SpawnedEventArgs : IPlayerEvent, IExiledEvent
- Inheritance
-
SpawnedEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
SpawnedEventArgs(Player, PlayerRoleBase)
Initializes a new instance of the SpawnedEventArgs class.
public SpawnedEventArgs(Player player, PlayerRoleBase oldRole)
Parameters
playerPlayerthe spawned player.
oldRolePlayerRoleBasethe spawned player's old role.
Properties
OldRole
Gets the player's old role.
public Role OldRole { get; }
Property Value
Player
Gets the Player who spawned.
public Player Player { get; }
Property Value
Reason
Gets the reason for their class change.
public SpawnReason Reason { get; }
Property Value
SpawnFlags
Gets the spawn flags for their class change.
public RoleSpawnFlags SpawnFlags { get; }
Property Value
- RoleSpawnFlags