Table of Contents

Class GainingExperienceEventArgs

Namespace
Exiled.Events.EventArgs.Scp079
Assembly
Exiled.Events.dll

Contains all information before SCP-079 gains experience.

public class GainingExperienceEventArgs : IScp079Event, IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
GainingExperienceEventArgs
Implements
Inherited Members
Extension Methods

Constructors

GainingExperienceEventArgs(Player, Scp079HudTranslation, int, RoleTypeId, bool)

Initializes a new instance of the GainingExperienceEventArgs class.

public GainingExperienceEventArgs(Player player, Scp079HudTranslation gainType, int amount, RoleTypeId roleType, bool isAllowed = true)

Parameters

player Player
gainType Scp079HudTranslation
amount int
roleType RoleTypeId
isAllowed bool

Properties

Amount

Gets or sets the amount of experience to be gained.

public int Amount { get; set; }

Property Value

int

GainType

Gets or sets the experience gain type.

public Scp079HudTranslation GainType { get; set; }

Property Value

Scp079HudTranslation

IsAllowed

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

public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the player who's controlling SCP-079.

public Player Player { get; }

Property Value

Player

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.

public RoleTypeId RoleType { get; set; }

Property Value

RoleTypeId

Scp079

Gets the Scp079Role triggering the event.

public Scp079Role Scp079 { get; }

Property Value

Scp079Role