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 SourceBeforePacketSentEvent(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 SourceSender
The EntityUid of the entity the packet was sent from.
Declaration
public readonly EntityUid Sender
Field Value
Type | Description |
---|---|
EntityUid |
SenderPosition
The senders current position in world coordinates.
Declaration
public readonly Vector2 SenderPosition
Field Value
Type | Description |
---|---|
Vector2 |
SenderTransform
Declaration
public readonly TransformComponent SenderTransform
Field Value
Type | Description |
---|---|
TransformComponent |