Class SpectatorRole
Defines a role that represents a spectator.
Implements
IWrapper<PlayerRoles.PlayerRoleBase>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Features.Roles
Assembly: Exiled.API.dll
Syntax
public class SpectatorRole : Role, IWrapper<PlayerRoleBase>
Properties
| Improve this Doc View SourceBase
Gets the game PlayerRoles.Spectating.SpectatorRole.
Declaration
public SpectatorRole Base { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.Spectating.SpectatorRole |
DeadTime
Gets the total amount of time the player has been dead.
Declaration
public TimeSpan DeadTime { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
DeathPosition
Gets the Player's death position.
Declaration
public Vector3 DeathPosition { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
DeathTime
Gets the System.DateTime at which the player died.
Declaration
public DateTime DeathTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
IsReadyToRespawn
Gets a value indicating whether the Player is ready to respawn or not.
Declaration
public bool IsReadyToRespawn { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SpectatedPlayer
Declaration
public Player SpectatedPlayer { get; }
Property Value
Type | Description |
---|---|
Player |
Type
Declaration
public override RoleTypeId Type { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.RoleTypeId |