MuzzleFlashEvent.cs 520 B

12345678910111213141516171819202122
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.Weapons.Ranged.Events;
  3. /// <summary>
  4. /// Raised whenever a muzzle flash client-side entity needs to be spawned.
  5. /// </summary>
  6. [Serializable, NetSerializable]
  7. public sealed class MuzzleFlashEvent : EntityEventArgs
  8. {
  9. public NetEntity Uid;
  10. public string Prototype;
  11. public Angle Angle;
  12. public MuzzleFlashEvent(NetEntity uid, string prototype, Angle angle)
  13. {
  14. Uid = uid;
  15. Prototype = prototype;
  16. Angle = angle;
  17. }
  18. }