Files
crystall-punk-14/Content.Shared/Weapons/Ranged/Events/MuzzleFlashEvent.cs

26 lines
655 B
C#
Raw Normal View History

2022-07-14 23:03:48 +10:00
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;
2022-07-14 23:03:48 +10:00
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)
2022-07-14 23:03:48 +10:00
{
Uid = uid;
2022-07-14 23:03:48 +10:00
Prototype = prototype;
MatchRotation = matchRotation;
2022-07-14 23:03:48 +10:00
}
}