Esempio n. 1
0
        //-------------------------------------  协议请求 -----------------------------------------//
        //客户端请求农场信息
        public void ApplyFarmInfo()
        {
            Log.info(this, "发送30-1给服务器请求农场信息");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_1(msdata);
            AppNet.gameNet.send(msdata, 30, 1);
        }
Esempio n. 2
0
        //客户端请求农场日志信息
        public void ApplyFarmLog()
        {
            Log.info(this, "发送30-2给服务器请求农场日志信息");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_2(msdata);
            AppNet.gameNet.send(msdata, 30, 2);
        }
Esempio n. 3
0
        //客户端请求一键收获
        public void ApplyGainAll()
        {
            Log.info(this, "发送30-14给服务器请求种子商店信息");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_14(msdata);
            AppNet.gameNet.send(msdata, 30, 14);
        }
Esempio n. 4
0
        //客户端请求播种
        public void ApplyCrop(uint seedId, byte pos)
        {
            Log.info(this, "发送30-15给服务器请求播种");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_15(msdata, seedId, pos);
            AppNet.gameNet.send(msdata, 30, 15);
        }
Esempio n. 5
0
        //客户端请求购买种子
        //(type:1 金币专区 type:2 钻石专区  goodsId:物品ID  num:购买数量)
        public void ApplyBuySeed(byte type, uint goodsId, uint num)
        {
            Log.info(this, "发送30-12给服务器请求购买种子");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_12(msdata, type, goodsId, num);
            AppNet.gameNet.send(msdata, 30, 12);
        }
Esempio n. 6
0
        //客户端请求农场操作
        //(id:待操作农场所属角色ID   pos:田编号  type:操作类型 0收货/偷取;1除虫;2除草;3浇水)
        public void ApplyFarmOpe(uint id, byte pos, byte opeType)
        {
            Log.info(this, "发送30-13给服务器请求农场操作");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_13(msdata, id, pos, opeType);
            AppNet.gameNet.send(msdata, 30, 13);
        }
Esempio n. 7
0
        //客户端请求升级土地
        public void ApplyUpdateLand()
        {
            Log.info(this, "发送30-10给服务器请求升级土地");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_10(msdata);
            AppNet.gameNet.send(msdata, 30, 10);
        }
Esempio n. 8
0
        //客户端请求种子商店信息(type:1 金币专区 type:2 钻石专区)
        public void ApplySeedStoreInfo(byte type)
        {
            Log.info(this, "发送30-11给服务器请求种子商店信息");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_11(msdata, type);
            AppNet.gameNet.send(msdata, 30, 11);
        }
Esempio n. 9
0
        //客户端请求扩充土地
        public void ApplyExpandLand()
        {
            Log.info(this, "发送30-9给服务器请求扩充土地");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_9(msdata);
            AppNet.gameNet.send(msdata, 30, 9);
        }
Esempio n. 10
0
        //客户端请求加速成长(pos:田编号  goodTypeId:加速成长需要消耗的物品)
        public void ApplyFastGrowUp(byte pos, uint goodTypeId)
        {
            Log.info(this, "发送30-8给服务器请求加速成长");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_8(msdata, pos, goodTypeId);
            AppNet.gameNet.send(msdata, 30, 8);
        }
Esempio n. 11
0
        //客户端请求种子背包信息
        public void ApplySeedInfo()
        {
            Log.info(this, "发送30-5给服务器请求种子背包信息");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_5(msdata);
            AppNet.gameNet.send(msdata, 30, 5);
        }
Esempio n. 12
0
        //客户端好友农场的信息
        public void ApplyFriendFarmInfo(uint friendId)
        {
            Log.info(this, "发送30-4给服务器请求好友农场信息");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_4(msdata, friendId);
            AppNet.gameNet.send(msdata, 30, 4);
        }
Esempio n. 13
0
        //客户端请求所有好友农场的简略信息
        public void ApplyFriendsFarmBaseInfo()
        {
            Log.info(this, "发送30-3给服务器请求所有好友农场的简略信息");
            MemoryStream msdata = new MemoryStream();

            Module_30.write_30_3(msdata);
            AppNet.gameNet.send(msdata, 30, 3);
        }