Show / Hide Table of Contents

Class BeforePacketSentEvent

Event raised before a device network packet is send. Subscribed to by other systems to prevent the packet from being sent.

Inheritance
System.Object
BeforePacketSentEvent
Namespace: Content.Server.DeviceNetwork.Systems
Assembly: Content.Server.dll
Syntax
public sealed class BeforePacketSentEvent : CancellableEntityEventArgs

Constructors

| Improve this Doc View Source

BeforePacketSentEvent(EntityUid, TransformComponent, Vector2)

Declaration
public BeforePacketSentEvent(EntityUid sender, TransformComponent xform, Vector2 senderPosition)
Parameters
Type Name Description
EntityUid sender
TransformComponent xform
Vector2 senderPosition

Fields

| Improve this Doc View Source

Sender

The EntityUid of the entity the packet was sent from.

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

SenderPosition

The senders current position in world coordinates.

Declaration
public readonly Vector2 SenderPosition
Field Value
Type Description
Vector2
| Improve this Doc View Source

SenderTransform

Declaration
public readonly TransformComponent SenderTransform
Field Value
Type Description
TransformComponent
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾