Exemplo n.º 1
0
 public GClass93(ConnectionManager connectionManager_1)
 {
     Class13.lOBHd9Nzn7x2T();
     this.object_0 = new object();
     this.bool_1   = true;
     base..ctor();
     this.Connection = connectionManager_1;
     this.method_6(new GClass84 <GClass854>(connectionManager_1));
     this.method_5().method_1(new Action <GInterface0>(GClass82.smethod_3));
     GClass82.smethod_2();
 }
Exemplo n.º 2
0
 private void method_8(GInterface0 ginterface0_0)
 {
     GClass82.smethod_3(ginterface0_0);
     if (this.bool_0 && this.gameManager_0.Connection.IsAuthenticated)
     {
         this.bool_1 = true;
         this.commandDispatcher_1.method_0(ginterface0_0);
         if (this.bool_1)
         {
             this.gclass84_0.SendMessage(ginterface0_0);
         }
     }
 }
Exemplo n.º 3
0
    public GClass5()
    {
        GClass5.smethod_0();
        this.logger_0 = LogManager.GetLogger("DOPE");
        this.logger_0.Info("Loading DOPE {arch} {version} on {architecture} ({os})", new object[]
        {
            GClass927.smethod_1() ? "x86" : "x64",
            Constants.VersionString,
            Environment.Is64BitOperatingSystem ? "x64" : "x86",
            Environment.OSVersion.VersionString
        });
        AppDomain.CurrentDomain.FirstChanceException += this.method_0;
        AppDomain.CurrentDomain.UnhandledException   += this.method_2;
        base.ShutdownMode = ShutdownMode.OnMainWindowClose;
        GClass82.smethod_2();
        bool flag;

        using (WindowsIdentity current = WindowsIdentity.GetCurrent())
        {
            flag = new WindowsPrincipal(current).IsInRole(WindowsBuiltInRole.Administrator);
        }
        PErkava.IsSupported = flag;
        try
        {
            PErkava.smethod_3();
        }
        catch
        {
            PErkava.IsSupported = false;
        }
        if (flag && PErkava.IsSupported)
        {
            try
            {
                GClass933 gclass = new GClass933();
                gclass.Start();
                PErkava.Host = gclass;
            }
            catch
            {
            }
        }
        this.logger_0.Info("PErkava support status: {status}", PErkava.IsSupported);
        if (PErkava.IsSupported)
        {
            this.logger_0.Info("Use legacy proxy: {proxy}", PErkava.smethod_2());
        }
        AppDomain.CurrentDomain.ProcessExit += this.method_1;
    }
Exemplo n.º 4
0
    public static void smethod_2()
    {
        if (GClass82.bool_0)
        {
            return;
        }
        GClass82.bool_0 = true;
        GClass82.smethod_1(new Dictionary <int, LinkedList <GClass82.GClass83> >());
        Logger logger = LogManager.GetLogger("Base-Net-Handlers");

        logger.Info("Discovering packet handlers...");
        int num = 0;

        foreach (Type type in typeof(GClass82).Assembly.GetTypes())
        {
            if (typeof(GInterface4).IsAssignableFrom(type))
            {
                GInterface4 ginterface = GClass85.smethod_0(type) as GInterface4;
                if (ginterface != null)
                {
                    foreach (MethodInfo methodInfo in type.GetMethods(BindingFlags.Instance | BindingFlags.Public))
                    {
                        ParameterInfo parameterInfo = methodInfo.GetParameters().SingleOrDefault <ParameterInfo>();
                        int           num2;
                        if (parameterInfo != null && typeof(GInterface0).IsAssignableFrom(parameterInfo.ParameterType) && GClass86.smethod_0(parameterInfo.ParameterType, out num2))
                        {
                            IDictionary <int, LinkedList <GClass82.GClass83> > d = GClass82.dictionary_0;
                            int key = num2;
                            GClass82.GClass83 gclass = new GClass82.GClass83();
                            gclass.method_3(ginterface);
                            gclass.method_1(DelegateHelper.ConstructDelegateCallVoid(methodInfo, type));
                            d.Append(key, gclass);
                            num++;
                        }
                    }
                }
            }
        }
        logger.Info("Found {count} packet handlers", num);
    }