Show / Hide Table of Contents

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 Source

DeviceNetworkPacketEvent(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 Source

Address

Address of the intended recipient. Null if the message was broadcast.

Declaration
public string? Address
Field Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Data

The data that is being sent.

Declaration
public readonly NetworkPayload Data
Field Value
Type Description
NetworkPayload
| Improve this Doc View Source

Frequency

The frequency the packet is sent on.

Declaration
public readonly uint Frequency
Field Value
Type Description
System.UInt32
| Improve this Doc View Source

NetId

The id of the network that this packet is being sent on.

Declaration
public int NetId
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Sender

The entity that sent the packet.

Declaration
public EntityUid Sender
Field Value
Type Description
EntityUid
| Improve this Doc View Source

SenderAddress

The device network address of the sending entity.

Declaration
public readonly string SenderAddress
Field Value
Type Description
System.String
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾