6
StarHorizon_Public/Content.Shared/DeviceNetwork/Events/BeforeBroadcastAttemptEvent.cs
2025-08-13 15:03:01 +03:00

18 lines
554 B
C#

using Content.Shared.DeviceNetwork.Components;
namespace Content.Shared.DeviceNetwork.Events;
/// <summary>
/// Sent to the sending entity before broadcasting network packets to recipients
/// </summary>
public sealed class BeforeBroadcastAttemptEvent : CancellableEntityEventArgs
{
public readonly IReadOnlySet<DeviceNetworkComponent> Recipients;
public HashSet<DeviceNetworkComponent>? ModifiedRecipients;
public BeforeBroadcastAttemptEvent(IReadOnlySet<DeviceNetworkComponent> recipients)
{
Recipients = recipients;
}
}