C# Class tdsm.core.Messages.MessageHandler

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

Public Methods

Method Description
GetPacket ( ) : Packet
MessageHandler ( ) : System
Process ( ClientConnection conn, byte readBuffer, int length, int pos ) : void
ReadBoolean ( byte readBuffer ) : bool
ReadByte ( byte readBuffer ) : byte
ReadInt16 ( byte readBuffer ) : short
ReadInt32 ( byte readBuffer ) : int
ReadRGB ( byte readBuffer ) : Color
ReadSingle ( byte readBuffer ) : float
ReadString ( byte readBuffer, string &str ) : bool
ReadString ( byte readBuffer ) : string
ReadUInt16 ( byte readBuffer ) : ushort
ReadVector2 ( byte readBuffer ) : Vector2
Reset ( int offset ) : void
Skip ( int count ) : void

Protected Methods

Method Description
ParseString ( byte strBuffer, int offset, int count, string &str ) : bool

Method Details

GetPacket() public abstract method

public abstract GetPacket ( ) : Packet
return Packet

MessageHandler() public method

public MessageHandler ( ) : System
return System

ParseString() protected method

protected ParseString ( byte strBuffer, int offset, int count, string &str ) : bool
strBuffer byte
offset int
count int
str string
return bool

Process() public abstract method

public abstract Process ( ClientConnection conn, byte readBuffer, int length, int pos ) : void
conn ClientConnection
readBuffer byte
length int
pos int
return void

ReadBoolean() public method

public ReadBoolean ( byte readBuffer ) : bool
readBuffer byte
return bool

ReadByte() public method

public ReadByte ( byte readBuffer ) : byte
readBuffer byte
return byte

ReadInt16() public method

public ReadInt16 ( byte readBuffer ) : short
readBuffer byte
return short

ReadInt32() public method

public ReadInt32 ( byte readBuffer ) : int
readBuffer byte
return int

ReadRGB() public method

public ReadRGB ( byte readBuffer ) : Color
readBuffer byte
return Color

ReadSingle() public method

public ReadSingle ( byte readBuffer ) : float
readBuffer byte
return float

ReadString() public method

public ReadString ( byte readBuffer, string &str ) : bool
readBuffer byte
str string
return bool

ReadString() public method

public ReadString ( byte readBuffer ) : string
readBuffer byte
return string

ReadUInt16() public method

public ReadUInt16 ( byte readBuffer ) : ushort
readBuffer byte
return ushort

ReadVector2() public method

public ReadVector2 ( byte readBuffer ) : Vector2
readBuffer byte
return Vector2

Reset() public method

public Reset ( int offset ) : void
offset int
return void

Skip() public method

public Skip ( int count ) : void
count int
return void