Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
 public GHRequest(ClientGame clientgame, GHRequestType requesttype, AddContextMenuData data)
 {
     RequestingClientGame = clientgame;
     RequestType          = requesttype;
     ContextMenuData      = data;
 }