コード例 #1
0
ファイル: ErrManager.cs プロジェクト: chenchungit/ky
        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);
        }
コード例 #2
0
ファイル: ErrManager.cs プロジェクト: chenchungit/ky
        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);
        }