public static void SendNotice(NoticeMode type, string content)
        {
            var param = new RequestParam();

            param.Add("Type", type);
            param.Add("ServerID", GameEnvironment.ProductServerId);
            param.Add("Content", content);
            remote.Call("NoticeService", param, successCallback);
        }
Esempio n. 2
0
        public static int Action1000(int userId)
        {
            var result = 0;
            var param  = new RequestParam();

            param.Add("UserId", userId);
            AutoResetEvent waitHandle = new AutoResetEvent(false);

            tcpRemote.Call("Battle1000", param, package =>
            {
                var reader = new MessageStructure(package.Message as byte[]);
                result     = reader.ReadInt();
                waitHandle.Set();
            });
            waitHandle.WaitOne(5000);
            return(result);
        }
Esempio n. 3
0
 public static void Send(string routePath, RequestParam param, Action <RemotePackage> callback)
 {
     m_TcpRemote.Call(routePath, param, callback);
 }