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(); }
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); }
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(); }
public static string GUILD_TASK = "task@guideUpdate"; //[email protected]=4 // ...$building@getMainCityInfo............ public CommandList(string pskey, AsynchronousClient client) { m_client = client; m_pkey2 = pskey; }
public static void GetMainCityInfo(AsynchronousClient client) { Command cmd = new Command("building@getMainCityInfo", ""); client.Send(cmd.outputarr); }