C# Class GameFramework.ProtoHelper

Exibir arquivo Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Methods

Method Description
DecodeFloat ( int value ) : float
DecodePosition2D ( ulong v, float &x, float &y ) : void
DecodePosition3D ( ulong v, float &x, float &y, float &z ) : void
EncodeFloat ( float value ) : int
EncodePosition2D ( float x, float y ) : ulong
EncodePosition3D ( float x, float y, float z ) : ulong

Method Details

DecodeFloat() public static method

public static DecodeFloat ( int value ) : float
value int
return float

DecodePosition2D() public static method

public static DecodePosition2D ( ulong v, float &x, float &y ) : void
v ulong
x float
y float
return void

DecodePosition3D() public static method

public static DecodePosition3D ( ulong v, float &x, float &y, float &z ) : void
v ulong
x float
y float
z float
return void

EncodeFloat() public static method

public static EncodeFloat ( float value ) : int
value float
return int

EncodePosition2D() public static method

public static EncodePosition2D ( float x, float y ) : ulong
x float
y float
return ulong

EncodePosition3D() public static method

public static EncodePosition3D ( float x, float y, float z ) : ulong
x float
y float
z float
return ulong