Search Results for

    Show / Hide Table of Contents

    Class SpawnedEventArgs

    Contains all information after spawning a player.

    Inheritance
    System.Object
    SpawnedEventArgs
    Implements
    IPlayerEvent
    IExiledEvent
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.Events.EventArgs.Player
    Assembly: Exiled.Events.dll
    Syntax
    public class SpawnedEventArgs : IPlayerEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    SpawnedEventArgs(Player, PlayerRoleBase)

    Initializes a new instance of the SpawnedEventArgs class.

    Declaration
    public SpawnedEventArgs(Player player, PlayerRoleBase oldRole)
    Parameters
    Type Name Description
    Player player

    the spawned player.

    PlayerRoles.PlayerRoleBase oldRole

    the spawned player's old PlayerRoles.PlayerRoleBase.

    Properties

    | Improve this Doc View Source

    OldRole

    Gets the player's old PlayerRoles.PlayerRoleBase.

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

    Player

    Gets the Player who spawned.

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

    Reason

    Gets the reason for their class change.

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

    SpawnFlags

    Gets the spawn flags for their class change.

    Declaration
    public RoleSpawnFlags SpawnFlags { get; }
    Property Value
    Type Description
    PlayerRoles.RoleSpawnFlags

    Implements

    IPlayerEvent
    IExiledEvent

    Extension Methods

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