Class ReceivingEffectEventArgs
Contains all information before a player receives a CustomPlayerEffects.StatusEffectBase.
public class ReceivingEffectEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
ReceivingEffectEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ReceivingEffectEventArgs(Player, StatusEffectBase, byte, byte, float)
Initializes a new instance of the ReceivingEffectEventArgs class.
public ReceivingEffectEventArgs(Player player, StatusEffectBase effect, byte intensity, byte currentIntensity, float duration)
Parameters
player
Playereffect
StatusEffectBaseintensity
byteThe intensity the effect is being changed to.
currentIntensity
byteduration
float
Properties
CurrentIntensity
Gets the value of the intensity of this effect on the player.
public byte CurrentIntensity { get; }
Property Value
Duration
Gets or sets a value indicating how long the effect will last. If its value is 0, then it doesn't always reflect the real effect duration.
public float Duration { get; set; }
Property Value
Effect
Gets the CustomPlayerEffects.StatusEffectBase being received.
public StatusEffectBase Effect { get; }
Property Value
- StatusEffectBase
Intensity
Gets or sets the value of the new intensity of the effect. Setting this to 0
is the same as setting IsAllowed to
false.
public byte Intensity { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the effect will be applied.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the Player receiving the effect.
public Player Player { get; }