Exemple #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();
        }
Exemple #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);
        }
Exemple #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();
        }
Exemple #4
0
 public CommandList(string pskey, AsynchronousClient client)
 {
     m_client = client;
     m_pkey2  = pskey;
 }
Exemple #5
0
        public static void GetMainCityInfo(AsynchronousClient client)
        {
            Command cmd = new Command("building@getMainCityInfo", "");

            client.Send(cmd.outputarr);
        }