Files
tbd-station-14/Content.Shared/Weapons/Ranged/Events/MuzzleFlashEvent.cs
2023-09-11 09:42:41 +10:00

26 lines
655 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.Weapons.Ranged.Events;
/// <summary>
/// Raised whenever a muzzle flash client-side entity needs to be spawned.
/// </summary>
[Serializable, NetSerializable]
public sealed class MuzzleFlashEvent : EntityEventArgs
{
public NetEntity Uid;
public string Prototype;
/// <summary>
/// Should the effect match the rotation of the entity.
/// </summary>
public bool MatchRotation;
public MuzzleFlashEvent(NetEntity uid, string prototype, bool matchRotation = false)
{
Uid = uid;
Prototype = prototype;
MatchRotation = matchRotation;
}
}