Search Results for

    Show / Hide Table of Contents

    Class SpectatorRole

    Defines a role that represents a spectator.

    Inheritance
    System.Object
    TypeCastObject<Role>
    Role
    SpectatorRole
    OverwatchRole
    Implements
    IWrapper<PlayerRoles.PlayerRoleBase>
    Inherited Members
    Role.Owner
    Role.SpawnReason
    Role.SpawnFlags
    Role.Team
    Role.Side
    Role.Color
    Role.Name
    Role.ActiveTime
    Role.IsDead
    Role.IsAlive
    Role.IsValid
    Role.RandomSpawnLocation
    Role.Equals(Object)
    Role.ToString()
    Role.GetHashCode()
    Role.Set(RoleTypeId, SpawnReason)
    Role.Set(RoleTypeId, RoleSpawnFlags)
    Role.Set(RoleTypeId, SpawnReason, RoleSpawnFlags)
    TypeCastObject<Role>.Cast<TObject>()
    TypeCastObject<Role>.Cast<TObject>(TObject)
    TypeCastObject<Role>.As<TObject>()
    TypeCastObject<Role>.Is<TObject>(TObject)
    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 Source

    Base

    Gets the game PlayerRoles.Spectating.SpectatorRole.

    Declaration
    public SpectatorRole Base { get; }
    Property Value
    Type Description
    PlayerRoles.Spectating.SpectatorRole
    | Improve this Doc View Source

    DeadTime

    Gets the total amount of time the player has been dead.

    Declaration
    public TimeSpan DeadTime { get; }
    Property Value
    Type Description
    System.TimeSpan
    | Improve this Doc View Source

    DeathPosition

    Gets the Player's death position.

    Declaration
    public Vector3 DeathPosition { get; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    DeathTime

    Gets the System.DateTime at which the player died.

    Declaration
    public DateTime DeathTime { get; }
    Property Value
    Type Description
    System.DateTime
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    SpectatedPlayer

    Gets currently spectated Player by this Player. May be null.

    Declaration
    public Player SpectatedPlayer { get; }
    Property Value
    Type Description
    Player
    | Improve this Doc View Source

    Type

    Declaration
    public override RoleTypeId Type { get; }
    Property Value
    Type Description
    PlayerRoles.RoleTypeId
    Overrides
    Role.Type

    Implements

    IWrapper<T>

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX