Пример #1
0
 private static void parseContextMenu(Client.Packets.ContextMenu context)
 {
     if (context.HasContextMenu)
     {
         if (context.CanSell)
         {
             Send(new ContextMenuResponsePacket(context.Serial, (short)context.ContextEntry("Sell").ResponseCode));
         }
     }
     else
     {
         // no context menu entries are handled. Send a double click.
         Send(new DoubleClickPacket(context.Serial));
     }
 }