Class DeviceNetworkPacketEvent
Event raised when a device network packet gets sent.
Inheritance
System.Object
DeviceNetworkPacketEvent
Namespace: Content.Server.DeviceNetwork.Systems
Assembly: Content.Server.dll
Syntax
public sealed class DeviceNetworkPacketEvent : EntityEventArgs
Constructors
| Improve this Doc View SourceDeviceNetworkPacketEvent(Int32, Nullable<String>, UInt32, String, EntityUid, NetworkPayload)
Declaration
public DeviceNetworkPacketEvent(int netId, string? address, uint frequency, string senderAddress, EntityUid sender, NetworkPayload data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | netId | |
System.Nullable<System.String> | address | |
System.UInt32 | frequency | |
System.String | senderAddress | |
EntityUid | sender | |
NetworkPayload | data |
Fields
| Improve this Doc View SourceAddress
Address of the intended recipient. Null if the message was broadcast.
Declaration
public string? Address
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |
Data
The data that is being sent.
Declaration
public readonly NetworkPayload Data
Field Value
Type | Description |
---|---|
NetworkPayload |
Frequency
The frequency the packet is sent on.
Declaration
public readonly uint Frequency
Field Value
Type | Description |
---|---|
System.UInt32 |
NetId
The id of the network that this packet is being sent on.
Declaration
public int NetId
Field Value
Type | Description |
---|---|
System.Int32 |
Sender
The entity that sent the packet.
Declaration
public EntityUid Sender
Field Value
Type | Description |
---|---|
EntityUid |
SenderAddress
The device network address of the sending entity.
Declaration
public readonly string SenderAddress
Field Value
Type | Description |
---|---|
System.String |