C# Class ManicDigger.NetworkHelper

Exibir arquivo Open project: GlennMR/800Craft-Client Class Usage Examples

Public Properties

Property Type Description
StringLength int

Public Methods

Method Description
HeadingByte ( Vector3 orientation ) : byte
PitchByte ( Vector3 orientation ) : byte
ReadInt16 ( BinaryReader br ) : int
ReadInt32 ( BinaryReader br ) : int
ReadString64 ( BinaryReader br ) : string
StringToBytes ( string s ) : byte[]
WriteInt16 ( BinaryWriter bw, short v ) : void
WriteInt32 ( BinaryWriter bw, int v ) : void
WriteString64 ( BinaryWriter bw, string s ) : void

Private Methods

Method Description
BytesToString ( byte s ) : string

Method Details

HeadingByte() public static method

public static HeadingByte ( Vector3 orientation ) : byte
orientation Vector3
return byte

PitchByte() public static method

public static PitchByte ( Vector3 orientation ) : byte
orientation Vector3
return byte

ReadInt16() public static method

public static ReadInt16 ( BinaryReader br ) : int
br System.IO.BinaryReader
return int

ReadInt32() public static method

public static ReadInt32 ( BinaryReader br ) : int
br System.IO.BinaryReader
return int

ReadString64() public static method

public static ReadString64 ( BinaryReader br ) : string
br System.IO.BinaryReader
return string

StringToBytes() public static method

public static StringToBytes ( string s ) : byte[]
s string
return byte[]

WriteInt16() public static method

public static WriteInt16 ( BinaryWriter bw, short v ) : void
bw System.IO.BinaryWriter
v short
return void

WriteInt32() public static method

public static WriteInt32 ( BinaryWriter bw, int v ) : void
bw System.IO.BinaryWriter
v int
return void

WriteString64() public static method

public static WriteString64 ( BinaryWriter bw, string s ) : void
bw System.IO.BinaryWriter
s string
return void

Property Details

StringLength public_oe static_oe property

public static int StringLength
return int