Class SpectatorRole
Defines a role that represents a spectator.
public class SpectatorRole : Role, IWrapper<PlayerRoleBase>, IVoiceRole
- Inheritance
-
SpectatorRole
- Implements
-
IWrapper<PlayerRoleBase>
- Derived
- Inherited Members
- Extension Methods
Properties
Base
Gets the game PlayerRoles.Spectating.SpectatorRole.
public SpectatorRole Base { get; }
Property Value
- SpectatorRole
DeadTime
Gets the total amount of time the player has been dead.
public TimeSpan DeadTime { get; }
Property Value
DeathPosition
Gets the Player's death position.
public Vector3 DeathPosition { get; }
Property Value
- Vector3
DeathTime
Gets the DateTime at which the player died.
public DateTime DeathTime { get; }
Property Value
IsReadyToRespawn
Gets a value indicating whether the Player is ready to respawn.
public bool IsReadyToRespawn { get; }
Property Value
SpectatedPlayer
public Player SpectatedPlayer { get; }
Property Value
Type
Gets the PlayerRoles.RoleTypeId of this Player.
public override RoleTypeId Type { get; }
Property Value
- RoleTypeId
VoiceModule
Gets the PlayerRoles.Voice.VoiceModuleBase of the role.
public VoiceModuleBase VoiceModule { get; }
Property Value
- VoiceModuleBase