Exemple #1
0
        /// <summary>
        /// 客户端请求开始挑战
        /// </summary>
        /// <param name="challengerId">被挑战者ID.</param>
        /// <param name="challengerRank">被挑战者排名.</param>
        public void ApplyStartChallenge(uint challengerId, ushort challengerRank)
        {
            Log.info(this, "发送19-10给服务器请求开始挑战");
            MemoryStream msdata = new MemoryStream();

            Module_19.write_19_10(msdata, challengerId, challengerRank);
            AppNet.gameNet.send(msdata, 19, 10);
        }
Exemple #2
0
        //-------------------------------------  协议请求 -----------------------------------------//
        //客户端请求竞技场信息
        public void ApplyArenaInfo()
        {
            Log.info(this, "发送19-0给服务器请求竞技场信息");
            MemoryStream msdata = new MemoryStream();

            Module_19.write_19_0(msdata);
            AppNet.gameNet.send(msdata, 19, 0);
        }
Exemple #3
0
        //客户端请求增加挑战次数
        public void ApplyArenaRecord()
        {
            Log.info(this, "发送19-8给服务器请求个人历史挑战记录");
            MemoryStream msdata = new MemoryStream();

            Module_19.write_19_8(msdata);
            AppNet.gameNet.send(msdata, 19, 8);
        }
Exemple #4
0
        //客户端请求增加挑战次数
        public void ApplyAddTimes()
        {
            Log.info(this, "发送19-4给服务器增加挑战次数");
            MemoryStream msdata = new MemoryStream();

            Module_19.write_19_4(msdata);
            AppNet.gameNet.send(msdata, 19, 4);
        }
Exemple #5
0
        //客户端请求清除挑战CD
        public void ApplyClearCD()
        {
            Log.info(this, "发送19-3给服务器清除挑战CD时间");
            MemoryStream msdata = new MemoryStream();

            Module_19.write_19_3(msdata);
            AppNet.gameNet.send(msdata, 19, 3);
        }
Exemple #6
0
        //客户端请求排名前十玩家信息
        public void ApplyRankInfo()
        {
            Log.info(this, "发送19-1给服务器请求竞技场排名前十玩家信息");
            MemoryStream msdata = new MemoryStream();

            Module_19.write_19_1(msdata);
            AppNet.gameNet.send(msdata, 19, 1);
        }
Exemple #7
0
 //客户端发送挑战结果给服务器
 public void SendChallengeResult(byte result)
 {
     if (!_isBattleEnd)
     {
         Log.info(this, "发送19-5给服务器告知挑战结果: " + result);
         MemoryStream msdata = new MemoryStream();
         Module_19.write_19_5(msdata, result);
         AppNet.gameNet.send(msdata, 19, 5);
     }
 }