namespace Content.Shared.DeviceNetwork.Events; /// /// Event raised when a device network packet gets sent. /// public sealed class DeviceNetworkPacketEvent : EntityEventArgs { /// /// The id of the network that this packet is being sent on. /// public int NetId; /// /// The frequency the packet is sent on. /// public readonly uint Frequency; /// /// Address of the intended recipient. Null if the message was broadcast. /// public string? Address; /// /// The device network address of the sending entity. /// public readonly string SenderAddress; /// /// The entity that sent the packet. /// public EntityUid Sender; /// /// The data that is being sent. /// public readonly NetworkPayload Data; public DeviceNetworkPacketEvent(int netId, string? address, uint frequency, string senderAddress, EntityUid sender, NetworkPayload data) { NetId = netId; Address = address; Frequency = frequency; SenderAddress = senderAddress; Sender = sender; Data = data; } }