* Predict dumping - This got soaped really fucking hard. - Dumping is predicted, this required disposals to be predicte.d - Disposals required mailing (because it's tightly coupled), and a smidge of other content systems. - I also had to fix a compnetworkgenerator issue at the same time so it wouldn't mispredict. * Fix a bunch of stuff * nasty merge * Some reviews * Some more reviews while I stash * Fix merge * Fix merge * Half of review * Review * re(h)f * lizards * feexes * feex
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
namespace Content.Shared.DeviceNetwork.Events;
|
|
|
|
/// <summary>
|
|
/// Event raised when a device network packet gets sent.
|
|
/// </summary>
|
|
public sealed class DeviceNetworkPacketEvent : EntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The id of the network that this packet is being sent on.
|
|
/// </summary>
|
|
public int NetId;
|
|
|
|
/// <summary>
|
|
/// The frequency the packet is sent on.
|
|
/// </summary>
|
|
public readonly uint Frequency;
|
|
|
|
/// <summary>
|
|
/// Address of the intended recipient. Null if the message was broadcast.
|
|
/// </summary>
|
|
public string? Address;
|
|
|
|
/// <summary>
|
|
/// The device network address of the sending entity.
|
|
/// </summary>
|
|
public readonly string SenderAddress;
|
|
|
|
/// <summary>
|
|
/// The entity that sent the packet.
|
|
/// </summary>
|
|
public EntityUid Sender;
|
|
|
|
/// <summary>
|
|
/// The data that is being sent.
|
|
/// </summary>
|
|
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;
|
|
}
|
|
} |