public void NotifySystemErrorToClient(Object obj, int _errID, string _errmsg) { SystemErrorInfoReponse szSystemErrorReponse = new SystemErrorInfoReponse(); szSystemErrorReponse.State = _errID; szSystemErrorReponse.ErrMsg = _errmsg; GameManager.ClientMgr.SendToClient((obj as GameClient), DataHelper.ObjectToBytes <SystemErrorInfoReponse>(szSystemErrorReponse), (int)CommandID.CMD_SYS_ERRCODE); }
public void NotifySystemErrorToClients(List <Object> objList, int _errID, string _errmsg) { SystemErrorInfoReponse szSystemErrorInfoReponse = new SystemErrorInfoReponse(); szSystemErrorInfoReponse.State = _errID; szSystemErrorInfoReponse.ErrMsg = _errmsg; GameManager.ClientMgr.SendProtocolToClients <SystemErrorInfoReponse>(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, null, objList, szSystemErrorInfoReponse, (int)CommandID.CMD_SYS_ERRCODEMSG); }