Exemple #1
0
        //发送10-1协议(综合,阵营聊天请求)给服务器
        public void SendPublicMsg(SendMesVo sendMes)
        {
            Log.info(this, "发送10-1(综合,阵营聊天请求)给服务器");

            MemoryStream msdata = new MemoryStream();

            Module_10.write_10_1(msdata, sendMes.sendChatType, sendMes.content, goods);
            AppNet.gameNet.send(msdata, 10, 1);
        }
Exemple #2
0
        //发送10-2协议(私聊请求给服务器)
        public void SendPrivateMsg(SendMesVo sendMes)
        {
            Log.info(this, "发送10-2私聊请求给服务器");
            MemoryStream msdata = new MemoryStream();

            if (sendMes.privateChatName != null)
            {
//				roleId = nameToIdDic [ReciveNameSL];
                Module_10.write_10_2(msdata, sendMes.privateChatRoleId, sendMes.content, goods);
                AppNet.gameNet.send(msdata, 10, 2);
            }
            else
            {
                MessageManager.Show("未指定私聊对象");
            }
        }