Class InteractingShootingTargetEventArgs
Contains all information before a player interacts with a shooting target.
public class InteractingShootingTargetEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
InteractingShootingTargetEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
InteractingShootingTargetEventArgs(Player, ShootingTarget, ShootingTargetButton, int, int, bool)
Initializes a new instance of the InteractingShootingTargetEventArgs class.
public InteractingShootingTargetEventArgs(Player player, ShootingTarget shootingTarget, ShootingTargetButton targetButton, int maxHp, int autoResetTime, bool isAllowed = true)
Parameters
player
PlayershootingTarget
ShootingTargettargetButton
ShootingTargetButtonmaxHp
intautoResetTime
intisAllowed
bool
Properties
IsAllowed
Gets or sets a value indicating whether the interaction is allowed.
public bool IsAllowed { get; set; }
Property Value
NewAutoResetTime
Gets or sets the new auto reset time of the target.
public int NewAutoResetTime { get; set; }
Property Value
NewMaxHp
Gets or sets the new max HP of the target.
public int NewMaxHp { get; set; }
Property Value
Player
Gets the player interacting with the shooting target.
public Player Player { get; }
Property Value
ShootingTarget
Gets the shooting target being interacted with.
public ShootingTargetToy ShootingTarget { get; }
Property Value
TargetButton
Gets the button the player interacted with.
public ShootingTargetButton TargetButton { get; }