private void method_8(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.NewItems == null)
     {
         return;
     }
     foreach (object obj in e.NewItems)
     {
         GClass871 gclass = (GClass871)obj;
         PErkava.smethod_0()[int.Parse(gclass.Context.Account.UserId)] = gclass.Context;
     }
 }
Example #2
0
    private void method_14(GClass239 gclass239_0)
    {
        this.bool_2 = false;
        IPErkavaBotController iperkavaBotController;

        if (!PErkava.smethod_0().TryGetValue(gclass239_0.int_0, out iperkavaBotController))
        {
            return;
        }
        this.gameManager_0 = iperkavaBotController.Game;
        this.gameManager_0.Settings.MapHosts = PErkava.concurrentDictionary_3[iperkavaBotController.GameServer].method_1();
        if (!iperkavaBotController.AttachPErkava(gclass239_0))
        {
            return;
        }
        this.gameManager_0.Connection.ProxySocket = this.method_0();
        this.method_12();
        this.method_16();
    }
Example #3
0
    private void method_6(GClass91 gclass91_0, ErrorReason errorReason_0, Exception exception_0)
    {
        GameManager game = this.Game;
        int?        num;

        if (game == null)
        {
            num = null;
        }
        else
        {
            Settings settings = game.Settings;
            if (settings == null)
            {
                num = null;
            }
            else
            {
                FlashSettings flashSettings = settings.FlashSettings;
                num = ((flashSettings != null) ? new int?(flashSettings.userID) : null);
            }
        }
        int?num2 = num;
        IPErkavaBotController iperkavaBotController;

        if (!PErkava.smethod_0().TryGetValue(num2 ?? -1, out iperkavaBotController))
        {
            return;
        }
        this.gameManager_0.Connection.Socket.method_5().method_1(new Action <GInterface0>(GClass82.smethod_3));
        iperkavaBotController.DetachPErkava();
        this.gclass84_0.method_1(null);
        try
        {
            this.bEyMqhdnuGd.method_8();
        }
        catch
        {
        }
    }