* stop jammer from jamming radio of certain frequency * xenoborg jammer no longer jamms xenoborg radio * stop jammer from jamming device network signals from certain frequency * xenoborg jammer no longer jamms xenoborg camera signal * the old tale of the missing ; * backwards * fix issue with readonly * comments to the frequencies excluded * triple typo * clearer summary * add summary * fixed 4th hidden typo
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using System.Numerics;
|
|
|
|
namespace Content.Shared.DeviceNetwork.Events;
|
|
|
|
/// <summary>
|
|
/// Event raised before a device network packet is send.
|
|
/// Subscribed to by other systems to prevent the packet from being sent.
|
|
/// </summary>
|
|
public sealed class BeforePacketSentEvent : CancellableEntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The EntityUid of the entity the packet was sent from.
|
|
/// </summary>
|
|
public readonly EntityUid Sender;
|
|
|
|
public readonly TransformComponent SenderTransform;
|
|
|
|
/// <summary>
|
|
/// The senders current position in world coordinates.
|
|
/// </summary>
|
|
public readonly Vector2 SenderPosition;
|
|
|
|
/// <summary>
|
|
/// The network the packet will be sent to.
|
|
/// </summary>
|
|
public readonly string NetworkId;
|
|
|
|
/// <summary>
|
|
/// The frequency the packet is sent on.
|
|
/// </summary>
|
|
public readonly uint Frequency;
|
|
|
|
public BeforePacketSentEvent(EntityUid sender, TransformComponent xform, Vector2 senderPosition, string networkId, uint frequency)
|
|
{
|
|
Sender = sender;
|
|
SenderTransform = xform;
|
|
SenderPosition = senderPosition;
|
|
NetworkId = networkId;
|
|
Frequency = frequency;
|
|
}
|
|
}
|