Skip to the content.

PacketHandlerAttribute

Namespace: DataFlow

Provides functionality for handling a Packet by its identifier.

public sealed class PacketHandlerAttribute : System.Attribute

Inheritance ObjectAttributePacketHandlerAttribute

Properties

TypeId

public object TypeId { get; }

Property Value

Object

Constructors

PacketHandlerAttribute(UInt16)

Initializes a new packet handler using the provided identifier.

public PacketHandlerAttribute(ushort identifier)

Parameters

identifier UInt16
The packet handler identifier.

Methods

FindPacketHandlers()

Retrieves methods that has the PacketHandlerAttribute applied.

internal static MethodInfo[] FindPacketHandlers()

Returns

MethodInfo[]
An array containing packet handler methods.