26 lines
655 B
C#
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;
|
|
}
|
|
}
|