Class GainingExperienceEventArgs
Contains all information before SCP-079 gains experience.
Inheritance
System.Object
GainingExperienceEventArgs
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 SourceGainingExperienceEventArgs(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 SourceAmount
Gets or sets the amount of experience to be gained.
Declaration
public int Amount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
GainType
Gets or sets the experience gain type.
Declaration
public Scp079HudTranslation GainType { get; set; }
Property Value
| Type | Description |
|---|---|
| PlayerRoles.PlayableScps.Scp079.Scp079HudTranslation |
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 |
Player
Gets the player who's controlling SCP-079.
Declaration
public Player Player { get; }
Property Value
| Type | Description |
|---|---|
| Player |
RoleType
Gets or sets the role that was used to gain experience.
Declaration
public RoleTypeId RoleType { get; set; }
Property Value
| Type | Description |
|---|---|
| PlayerRoles.RoleTypeId |
Scp079
Declaration
public Scp079Role Scp079 { get; }
Property Value
| Type | Description |
|---|---|
| Scp079Role |