Example #1
0
        public static void SendGetBuildingInfo(AsynchronousClient client, int ntype)
        {
            Dictionary <string, string> lst = new Dictionary <string, string>();

            lst.Add("type", ntype.ToString());
            Command cmd3 = new Command(CommandList.MC_GET_BUILDING_INFO, lst);

            client.Send(cmd3.outputarr);
            client.SendDone.WaitOne();
        }
Example #2
0
        public static void FinishTask(AsynchronousClient client, int group, int type, int index)
        {
            Dictionary <string, string> lst = new Dictionary <string, string>();

            lst.Clear();
            lst.Add("group", group.ToString());
            lst.Add("type", type.ToString());
            lst.Add("index", index.ToString());
            Command cmd2 = new Command(CommandList.HeatBeat, lst);

            client.Send(cmd2.outputarr);
        }
Example #3
0
        public static void SendHeatBeat(AsynchronousClient client, string pkey2)
        {
            Dictionary <string, string> lst = new Dictionary <string, string>();

            lst.Clear();
            lst.Add("pkey", pkey2);
            Command cmd2 = new Command(CommandList.HeatBeat, lst);

            client.Send(cmd2.outputarr);
            client.SendDone.WaitOne();

            // lst.Clear();
            // cmd2 = new Command(CommandList.HEART_BEAT_TEST2, lst);

            // client.Send(cmd2.outputarr);
            // client.SendDone.WaitOne();
        }
Example #4
0
        public static void GetMainCityInfo(AsynchronousClient client)
        {
            Command cmd = new Command("building@getMainCityInfo", "");

            client.Send(cmd.outputarr);
        }