C# Class MapServer.DBServer

Mostrar archivo Open project: dream-young-soul/soul Class Usage Examples

Public Methods

Method Description
DBServer ( ) : System
GetDBClient ( ) : TcpClient
Init ( ) : void
Instance ( ) : DBServer
IsConnect ( ) : bool
ProcessDBNetMsg ( ) : void
SaveRoleData ( PlayerObject play, bool isExit = false ) : void

Private Methods

Method Description
OnDBClose ( Socket s ) : void
OnDBConnectEventHandler ( bool isSucceed ) : void
OnDBReceiveEventHandler ( byte data, int nSize ) : void

Method Details

DBServer() public method

public DBServer ( ) : System
return System

GetDBClient() public method

public GetDBClient ( ) : TcpClient
return GameBase.Network.TcpClient

Init() public method

public Init ( ) : void
return void

Instance() public static method

public static Instance ( ) : DBServer
return DBServer

IsConnect() public method

public IsConnect ( ) : bool
return bool

ProcessDBNetMsg() public method

public ProcessDBNetMsg ( ) : void
return void

SaveRoleData() public method

public SaveRoleData ( PlayerObject play, bool isExit = false ) : void
play PlayerObject
isExit bool
return void