// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using System;
using UnityEngine;
namespace UltimateXR.Mechanics.Weapons
{
///
/// Event parameters for projectile impacts that do not cause any damage to actors, such as impacts on the
/// scenario or other elements.
///
public class UxrNonDamagingImpactEventArgs : EventArgs
{
#region Public Types & Data
///
/// Gets the actor that fired the shot.
///
public UxrActor WeaponOwner { get; }
///
/// The projectile source.
///
public UxrProjectileSource ProjectileSource { get; }
///
/// The raycast that detected the hit.
///
public RaycastHit RaycastHit { get; }
#endregion
#region Constructors & Finalizer
///
/// Constructor.
///
/// Owner of the weapon that fired the shot
/// Projectile source
/// Raycast that detected the hit
public UxrNonDamagingImpactEventArgs(UxrActor weaponOwner, UxrProjectileSource projectileSource, RaycastHit raycastHit)
{
WeaponOwner = weaponOwner;
ProjectileSource = projectileSource;
RaycastHit = raycastHit;
}
#endregion
}
}