コード例 #1
0
ファイル: MailHandler.cs プロジェクト: v8lab/yxjxmk
        public void mailReadNotify(List <string> c2s_id)
        {
            var notify = new MailReadNotify();

            notify.c2s_id.AddRange(c2s_id);

            _socket.notify(notify);
        }
コード例 #2
0
 public void Notify(string route, JsonObject msg)
 {
     if (pclient != null)
     {
         pclient.notify(route, msg);
     }
 }
コード例 #3
0
        public static void send(string message)
        {
            JsonObject msg = new JsonObject();

            msg["content"] = message;
            msg["target"]  = "*";
            pc.notify("chat.chatHandler.send", msg);
        }
コード例 #4
0
        public void cjPlayEndNotify(string s2c_msg)
        {
            var notify = new CjPlayEndNotify();

            notify.s2c_msg = s2c_msg;

            _socket.notify(notify);
        }
コード例 #5
0
        public void saveRankNotify(int c2s_selectedRankId)
        {
            var notify = new SaveRankNotify();

            notify.c2s_selectedRankId = c2s_selectedRankId;

            _socket.notify(notify);
        }
コード例 #6
0
        public void queryItemStatusUpdateNotify(int index)
        {
            var notify = new QueryItemStatusUpdateNotify();

            notify.index = index;

            _socket.notify(notify);
        }
コード例 #7
0
ファイル: PlayerHandler.cs プロジェクト: v8lab/yxjxmk
        public void battleEventNotify(byte[] c2s_data)
        {
            var notify = new BattleEventNotify();

            notify.c2s_data = c2s_data;

            _socket.notify(notify);
        }
コード例 #8
0
		public void saveWingNotify(int c2s_wingLevel)
		{
			var notify = new SaveWingNotify();
			notify.c2s_wingLevel= c2s_wingLevel;

			_socket.notify(notify);

		}
コード例 #9
0
        public static void send(string message)
        {
            JsonObject args = new JsonObject();

            args["content"] = message;
            args["target"]  = "*";

            pc.notify("chat.chatHandler.send", args);
        }
コード例 #10
0
        private void button4_Click(object sender, EventArgs e)
        {
            this.label3.Text = "notify";

            JsonObject msg = new JsonObject();

            msg["uid"] = "notify";

            _pomeloClient.notify("test.testHandler.testNotify", msg);
        }
コード例 #11
0
ファイル: NetMgr.cs プロジェクト: isoundy000/shmj3d
    public void send(string route, JsonObject data)
    {
        if (!mConnected)
        {
            Debug.Log("not connect.");
            return;
        }

        pc.notify("game.gameHandler." + route, data);
    }
コード例 #12
0
            public static bool send(string rid, string content, string from, string target)
            {
                JsonData data = new JsonData();

                data["rid"]     = rid;
                data["content"] = content;
                data["from"]    = from;
                data["target"]  = target;
                pc.notify("chat.chatHandler.send", data);
                return(true);
            }
コード例 #13
0
    private void sendMsg(uint pID, JsonObject msg, Action <Message> action)
    {
        if (_connection != null)
        {
            System.Object route;

            if (ROUTE_MAP.TryGetValue("P" + (int)pID, out route))
            {
                if (action == null)
                {
                    _connection.notify(route.ToString(), msg);
                }
                else
                {
                    _connection.request(pID, route.ToString(), msg, action);
                }
            }
        }
    }
コード例 #14
0
ファイル: Network.cs プロジェクト: yuchenwuhen/skillEditor
 public void Update()
 {
     if (netWorkState != NetWorkState.WORK)
     {
         return;
     }
     while (requests.Count > 0)
     {
         RequestMessage req = requests.Dequeue();
         if (req != null)
         {
             if (req.action == null)
             {
                 client.notify(req.route, req.msg);
             }
             else
             {
                 client.request(req.route, req.msg, req.action);
             }
         }
     }
 }
コード例 #15
0
ファイル: MainWindow.xaml.cs プロジェクト: soulkey99/byserver
        void OnNotify2(object sender, RoutedEventArgs e)
        {
            if (pc2 == null)
            {
                Log2("not connected.");
                return;
            }
            if (this.Method2.Text == String.Empty)
            {
                Log2("method empty.");
                return;
            }
            if (this.Data2.Text == String.Empty)
            {
                Log2("data empty.");
                return;
            }
            dynamic    de  = SimpleJson.SimpleJson.DeserializeObject(this.Data2.Text);
            JsonObject msg = de as JsonObject;

            pc2.notify(this.Method1.Text, msg);
        }
コード例 #16
0
        public void addBagItemTestNotify()
        {
            var notify = new AddBagItemTestNotify();

            _socket.notify(notify);
        }
コード例 #17
0
 //通知给对方服务器一个消息,不会有回传数据
 public void notify(string route, JsonObject message)
 {
     pclient.notify(route, message);
 }
コード例 #18
0
 /// <summary>
 /// notify server without response
 /// </summary>
 /// <param name="route"></param>
 /// <param name="data"></param>
 public void Notify(string route, JsonObject data)
 {
     m_Conn.notify(route, data);
 }