/// <summary> /// Initializes a new instance of the <see cref="InteractingShootingTargetEventArgs"/> class. /// </summary> /// <param name="player"><inheritdoc cref="Player"/></param> /// <param name="shootingTarget"><inheritdoc cref="ShootingTarget"/></param> /// <param name="targetButton"><inheritdoc cref="TargetButton"/></param> /// <param name="maxHp"><inheritdoc cref="NewMaxHp"/></param> /// <param name="autoResetTime"><inheritdoc cref="NewAutoResetTime"/></param> /// <param name="isAllowed"><inheritdoc cref="IsAllowed"/></param> public InteractingShootingTargetEventArgs(Player player, AdminToys.ShootingTarget shootingTarget, ShootingTargetButton targetButton, int maxHp, int autoResetTime, bool isAllowed = true) { Player = player; ShootingTarget = ShootingTarget.Get(shootingTarget); TargetButton = targetButton; IsAllowed = isAllowed; this.maxHp = maxHp; this.autoResetTime = autoResetTime; }
/// <summary> /// Initializes a new instance of the <see cref="DamagingShootingTargetEventArgs"/> class. /// </summary> /// <param name="player"><inheritdoc cref="Player"/></param> /// <param name="damage"><inheritdoc cref="Amount"/></param> /// <param name="distance"><inheritdoc cref="Distance"/></param> /// <param name="shootingTarget"><inheritdoc cref="ShootingTarget"/></param> /// <param name="damageHandler"><inheritdoc cref="Item"/></param> /// <param name="hitLocation"><inheritdoc cref="HitLocation"/></param> /// <param name="isAllowed"><inheritdoc cref="IsAllowed"/></param> public DamagingShootingTargetEventArgs(Player player, float damage, float distance, Vector3 hitLocation, AdminToys.ShootingTarget shootingTarget, DamageHandlerBase damageHandler, bool isAllowed = true) { Player = player; Amount = damage; Distance = distance; ShootingTarget = ShootingTarget.Get(shootingTarget); Item = player.CurrentItem; DamageHandler = (AttackerDamageHandler)damageHandler; HitLocation = hitLocation; IsAllowed = isAllowed; }