C# Class TDSM.Core.Net.PacketHandling.PacketProcessor

Datei anzeigen Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Public Methods

Method Description
CheckState ( OTA.Plugin.HookContext &ctx, HookArgs &args ) : void

Handles the connection state when receiving a packet

HandlePacket ( OTA.Plugin.HookContext &ctx, HookArgs &args ) : void

Handles packets received from OTA

Private Methods

Method Description
GetHandlers ( ) : IPacketHandler[]

Loads all packet handlers in the code base.

Initialise ( Entry plugin ) : void

Method Details

CheckState() public static method

Handles the connection state when receiving a packet
public static CheckState ( OTA.Plugin.HookContext &ctx, HookArgs &args ) : void
ctx OTA.Plugin.HookContext
args HookArgs
return void

HandlePacket() public static method

Handles packets received from OTA
public static HandlePacket ( OTA.Plugin.HookContext &ctx, HookArgs &args ) : void
ctx OTA.Plugin.HookContext
args HookArgs
return void