C# Class tdsm.core.Messages.MessageDispatcher

Exibir arquivo Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Public Methods

Method Description
Dispatch ( ClientConnection conn, byte readBuffer, int start, int length ) : void

Private Methods

Method Description
GetMessageArray ( ) : tdsm.core.Messages.MessageHandler[]

Load all IMessage types into an indexed array at application start. This should allow us to process Events extremely quickly while cutting down on how much code we have to hold in our head to understand each Event.

Method Details

Dispatch() public static method

public static Dispatch ( ClientConnection conn, byte readBuffer, int start, int length ) : void
conn ClientConnection
readBuffer byte
start int
length int
return void