Class GainingExperienceEventArgs
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
Properties
Amount
Gets or sets the amount of experience to be gained.
public int Amount { get; set; }
Property Value
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
Player
Gets the player who's controlling SCP-079.
public Player Player { get; }
Property Value
RoleType
Gets or sets the role that was used to gain experience.
public RoleTypeId RoleType { get; set; }
Property Value
- RoleTypeId
Scp079
Gets the Scp079Role triggering the event.
public Scp079Role Scp079 { get; }