public void ClientCallback_AddContextMenu(int cmd_def_char, int cmd_cur_char, int dir, int glyph, string cmd_text, string target_text, int attr, int color) { ConcurrentQueue <GHRequest> queue; if (ClientGame.RequestDictionary.TryGetValue(this, out queue)) { AddContextMenuData data = new AddContextMenuData(); data.cmd_def_char = cmd_def_char; data.cmd_cur_char = cmd_cur_char; data.dir = dir; data.glyph = glyph; data.cmd_text = cmd_text; data.target_text = target_text; data.attr = attr; data.color = color; queue.Enqueue(new GHRequest(this, GHRequestType.AddContextMenu, data)); } }
public GHRequest(ClientGame clientgame, GHRequestType requesttype, AddContextMenuData data) { RequestingClientGame = clientgame; RequestType = requesttype; ContextMenuData = data; }