Search Results for

    Show / Hide Table of Contents

    Class GainingExperienceEventArgs

    Contains all information before SCP-079 gains experience.

    Inheritance
    System.Object
    GainingExperienceEventArgs
    Implements
    IScp079Event
    IPlayerEvent
    IDeniableEvent
    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.Scp079
    Assembly: Exiled.Events.dll
    Syntax
    public class GainingExperienceEventArgs : IScp079Event, IPlayerEvent, IDeniableEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    GainingExperienceEventArgs(Player, Scp079HudTranslation, Int32, RoleTypeId, Boolean)

    Initializes a new instance of the GainingExperienceEventArgs class.

    Declaration
    public GainingExperienceEventArgs(Player player, Scp079HudTranslation gainType, int amount, RoleTypeId roleType, bool isAllowed = true)
    Parameters
    Type Name Description
    Player player
    PlayerRoles.PlayableScps.Scp079.Scp079HudTranslation gainType
    System.Int32 amount
    PlayerRoles.RoleTypeId roleType
    System.Boolean isAllowed

    Properties

    | Improve this Doc View Source

    Amount

    Gets or sets the amount of experience to be gained.

    Declaration
    public int Amount { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    GainType

    Gets or sets the experience gain type.

    Declaration
    public Scp079HudTranslation GainType { get; set; }
    Property Value
    Type Description
    PlayerRoles.PlayableScps.Scp079.Scp079HudTranslation
    | Improve this Doc View Source

    IsAllowed

    Gets or sets a value indicating whether or not the experience is successfully granted.

    Declaration
    public bool IsAllowed { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Player

    Gets the player who's controlling SCP-079.

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

    RoleType

    Gets or sets the role that was used to gain experience. The RoleType will be PlayerRoles.RoleTypeId.None when it's not an assisted experience.

    Declaration
    public RoleTypeId RoleType { get; set; }
    Property Value
    Type Description
    PlayerRoles.RoleTypeId
    | Improve this Doc View Source

    Scp079

    Declaration
    public Scp079Role Scp079 { get; }
    Property Value
    Type Description
    Scp079Role

    Implements

    IScp079Event
    IPlayerEvent
    IDeniableEvent
    IExiledEvent

    Extension Methods

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