Пример #1
0
 public GClass855(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     this.list_0 = new List <Rectangle>();
     base..ctor(gclass839_1);
     this.list_0.Add(GClass855.rectangle_0);
 }
Пример #2
0
    public int method_7()
    {
        int                  num     = this.method_14();
        GClass839            context = base.Context;
        SpinnerModeSelection?spinnerModeSelection;

        if (context == null)
        {
            spinnerModeSelection = null;
        }
        else
        {
            AccountSettings account = context.Account;
            spinnerModeSelection = ((account != null) ? new SpinnerModeSelection?(account.Spinner_SpinSize) : null);
        }
        SpinnerModeSelection?spinnerModeSelection2 = spinnerModeSelection;
        SpinnerModeSelection valueOrDefault        = spinnerModeSelection2.GetValueOrDefault();

        if (num >= 10 && valueOrDefault == SpinnerModeSelection.X10)
        {
            return(10);
        }
        if (num >= 5 && valueOrDefault == SpinnerModeSelection.X5)
        {
            return(5);
        }
        return(1);
    }
Пример #3
0
 public GClass865(GClass839 gclass839_1, string string_0)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor();
     this.Context = gclass839_1;
     this.Log     = this.Context.method_69("BackgroundLogic-" + string_0);
 }
Пример #4
0
 public GClass853(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     this.unknownMapObjectsTracker_0 = new UnknownMapObjectsTracker <bool>();
     base..ctor();
     this.Context = gclass839_1;
 }
Пример #5
0
 public GClass856(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     this.float_1 = 100f;
     base..ctor(gclass839_1);
     this.float_0 = (float)base.C.Game.Random.NextDouble() * 2f;
     this.float_1 = (float)base.C.Game.Random.Next(100, 300);
 }
Пример #6
0
 public GClass841(GClass839 gclass839_1, string string_1, int int_2 = -2147483648)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor();
     this.Name     = string_1;
     this.Context  = gclass839_1;
     this.Priority = int_2;
 }
Пример #7
0
 public GClass843(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     this.bool_0 = true;
     base..ctor(gclass839_1, "Palladium", int.MinValue);
     this.gclass859_0 = new GClass859(gclass839_1);
     this.gclass860_0 = new GClass860(gclass839_1);
 }
Пример #8
0
 public GClass859(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1);
     this.list_1 = new List <Rectangle>
     {
         GClass859.list_0[0]
     };
 }
Пример #9
0
 public GClass846(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, TargetMap.X6);
     GClass846.< > c__DisplayClass7_0 CS$ < > 8__locals1 = new GClass846.< > c__DisplayClass7_0();
     CS$ < > 8__locals1.random_0 = base.C.Game.Random;
     this.dictionary_0           = GClass846.list_0.ToDictionary(new Func <Vector2, Vector2>(CS$ < > 8__locals1.method_0), new Func <Vector2, DateTimeOffset>(GClass846.< > c.< > c_0.method_0));
     this.Behavior = new GClass862(gclass839_1, this);
 }
Пример #10
0
 public GClass842(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     this.mapProfile_1 = new MapProfile
     {
         TargetMap = TargetMap.X1
     };
     base..ctor(gclass839_1, "Idle", -1);
     base.MapProfile = null;
 }
Пример #11
0
 public GClass837(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     this.dictionary_0 = new Dictionary <string, DateTimeOffset>();
     this.random_0     = new Random();
     this.list_0       = new List <GClass841>();
     this.object_0     = new object();
     base..ctor();
     this.Context = gclass839_1;
     this.list_0.Add(this.Module = new GClass842(gclass839_1));
     foreach (object obj in Enum.GetValues(typeof(TargetMap)))
     {
         TargetMap targetMap = (TargetMap)obj;
         if (targetMap != TargetMap.PayloadEscort)
         {
             GClass841 gclass = null;
             if (MapUtils.smethod_6((int)targetMap))
             {
                 if (MapUtils.smethod_7((int)targetMap))
                 {
                     gclass = new GClass849(gclass839_1, targetMap);
                 }
                 else if (MapUtils.smethod_8((int)targetMap))
                 {
                     gclass = new GClass850(gclass839_1, targetMap);
                 }
             }
             else
             {
                 gclass = new GClass845(gclass839_1, targetMap);
             }
             if (gclass != null)
             {
                 this.list_0.Add(gclass);
             }
         }
     }
     this.list_0.Add(new GClass843(gclass839_1));
     if (Constants.bool_0)
     {
         this.list_0.Add(new GClass851(gclass839_1));
     }
     this.list_0.Add(new GClass846(gclass839_1));
     if (Constants.FrozenLabirynthEnabled)
     {
         this.list_0.Add(new GClass847(gclass839_1));
     }
     if (Constants.PayloadEscortEnabled)
     {
         this.list_0.Add(new GClass848(gclass839_1));
     }
     this.list_0.Add(new GClass852(gclass839_1));
     this.Module.Start();
 }
Пример #12
0
    private static EntityDataRoot smethod_18(GClass839 gclass839_0, Map map_0)
    {
        string text = string.Join("\r\n", gclass839_0.method_68());

        if (string.IsNullOrWhiteSpace(text))
        {
            return(null);
        }
        return(GClass840.smethod_16(0.98f, 0.1f, new EntityRenderFragment[]
        {
            GClass840.smethod_11(Color.Red, "30px Arial", "right", text, null)
        }));
    }
Пример #13
0
        private void method_10()
        {
            try
            {
                MainWindow.< > c__DisplayClass60_0 CS$ < > 8__locals1 = new MainWindow.< > c__DisplayClass60_0();
                CS$ < > 8__locals1.selected = this.Selected;
                if (CS$ < > 8__locals1.selected != null)
                {
                    if (this._lastSelected == CS$ < > 8__locals1.selected && this._lastMapControl != null)
                    {
                        int renders = this.Renders;
                        this.Renders = renders + 1;
                        if (renders % 100 != 0)
                        {
                            goto IL_67;
                        }
                    }
                    this._lastMapControl = GClass6.smethod_0 <MapControl>(this.MainTabs, new Func <MapControl, bool>(CS$ < > 8__locals1.UchShImKrY));
IL_67:
                    this._lastSelected = CS$ < > 8__locals1.selected;
                    MapControl lastMapControl = this._lastMapControl;
                    if (lastMapControl != null)
                    {
                        lastMapControl.InvalidateVisual();
                    }
                    GClass871 lastSelected = this._lastSelected;
                    if (lastSelected != null)
                    {
                        GClass839 context = lastSelected.Context;
                        if (context != null)
                        {
                            GClass831 stats = context.Stats;
                            if (stats != null)
                            {
                                stats.method_3();
                            }
                        }
                    }
                    GameManager game = CS$ < > 8__locals1.selected.Context.Game;
                }
            }
            catch
            {
            }
            this.LastRender = DateTimeOffset.Now;
        }
Пример #14
0
    private static EntityDataRoot smethod_12(GClass839 gclass839_0, Map map_0, Ship ship_0)
    {
        EntityDataRoot entityDataRoot = GClass840.smethod_2(map_0, ship_0);
        Color          color_         = MapUtils.smethod_16(map_0, ship_0);
        NpcShip        npcShip        = ship_0 as NpcShip;

        if (npcShip != null && (!(gclass839_0.Behavior ?? gclass839_0.gclass853_0).vmethod_8(npcShip) || npcShip.LeashedBy > 0))
        {
            color_ = Color.Gray;
        }
        Color?nullable_ = null;

        entityDataRoot.Data = new List <EntityRenderFragment>
        {
            GClass840.smethod_6(color_, 4, nullable_)
        };
        return(entityDataRoot);
    }
Пример #15
0
 public GClass831(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor();
     this.Context                               = gclass839_1;
     base.HeroStats                             = (this.gclass835_0 = new GClass835(gclass839_1.Hero, this));
     base.PetStats                              = (this.gclass836_0 = new GClass836(gclass839_1.Hero.Pet, this));
     base.GgStats                               = (this.gclass834_0 = new GClass834(gclass839_1.Game.Web));
     this.DeathLog                              = new Dictionary <string, GClass833.GStruct0>();
     base.DeathStats                            = (this.gclass833_0 = new GClass833(this.DeathLog));
     this.dictionary_0                          = new Dictionary <string, int>();
     base.NpcStats                              = (this.gclass832_0 = new GClass832("NPCs", this.dictionary_0));
     this.dictionary_1                          = new Dictionary <string, int>();
     base.BoxStats                              = (this.gclass832_1 = new GClass832("Boxes", this.dictionary_1));
     gclass839_1.Game.LogMessage               += this.method_2;
     gclass839_1.Game.Map.ShipDestroyed        += this.method_1;
     gclass839_1.Game.Map.CollectibleCollected += this.method_0;
 }
Пример #16
0
    private static EntityDataRoot smethod_19(GClass839 gclass839_0)
    {
        string  text = string.Format("{0} | CFG: {1} | FRM: {2}", gclass839_0.State.ToString(), gclass839_0.Hero.Config, gclass839_0.Hero.Formation.ToString());
        HeroPet pet  = gclass839_0.Hero.Pet;

        if (pet != null && pet.IsAvailable)
        {
            text += " | PET: ";
            if (gclass839_0.Hero.Pet.IsEnabled)
            {
                text += gclass839_0.Hero.Pet.Mode.ToString();
            }
            else
            {
                text += "Off";
            }
        }
        return(GClass840.smethod_16(0.02f, 0.95f, new EntityRenderFragment[]
        {
            GClass840.smethod_11(Color.Red, "16px Arial", "left", text, null)
        }));
    }
Пример #17
0
    private bool method_6(float float_0, float float_1)
    {
        GClass839       context  = this.Context;
        SecurityManager security = context.Map.Game.Security;
        Vector2         vector2_ = new Vector2(float_0, float_1);
        Gate            gate     = context.Map.method_5 <Gate>(vector2_, null, null, 0);

        if (gate == null)
        {
            return(false);
        }
        if (security.method_3(vector2_, gate.Position, 0) && security.method_3(gate.Position, context.Map.Hero.Position, 0))
        {
            context.Map.Game.Connection.Server.method_2(gate.Id);
            return(true);
        }
        if (this.Context.Run && !this.Context.IsPaused)
        {
            context.method_35(gate.Position, gate, 15, false);
        }
        return(false);
    }
Пример #18
0
    public Task <BotDetailedViewModel> method_3(int int_0, bool bool_0)
    {
        MapViewData          spacemap             = GClass840.smethod_24(this.Context, bool_0 | this.Context.Map.MapId != int_0);
        BotSummaryViewModel  summary              = new BotSummaryViewModel(this.Context.Hero, this.Context.Stats, this.Context.Stats.RunTime);
        BotDetailedViewModel botDetailedViewModel = new BotDetailedViewModel();

        botDetailedViewModel.Spacemap = spacemap;
        GClass839 context = this.Context;
        string    botId;

        if (context == null)
        {
            botId = null;
        }
        else
        {
            AccountSettings account = context.Account;
            botId = ((account != null) ? account.BotId : null);
        }
        botDetailedViewModel.BotId   = botId;
        botDetailedViewModel.Summary = summary;
        return(Task.FromResult <BotDetailedViewModel>(botDetailedViewModel));
    }
Пример #19
0
 public GClass851(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, TargetMap.GG_VoT);
 }
Пример #20
0
        public void method_11(DrawingContext drawingContext_0, float float_0, float float_1, GClass839 gclass839_0)
        {
            foreach (KeyValuePair <string, Collectible> keyValuePair in gclass839_0.DormantTargets)
            {
                Collectible value = keyValuePair.Value;
                drawingContext_0.DrawRectangle(System.Windows.Media.Brushes.Pink, null, MapControl.smethod_0((double)(value.Position.X * float_0), (double)(value.Position.Y * float_1), 2.0, 2.0));
            }
            if (gclass839_0.RoamTarget != Vector2.Zero)
            {
                Vector2 roamTarget = gclass839_0.RoamTarget;
                drawingContext_0.DrawEllipse(System.Windows.Media.Brushes.Magenta, null, new System.Windows.Point((double)(roamTarget.X * float_0), (double)(roamTarget.Y * float_1)), 6.0, 6.0);
            }
            GClass853        behavior = gclass839_0.Behavior;
            List <Rectangle> list     = (behavior != null) ? behavior.vmethod_17() : null;

            if (list != null)
            {
                foreach (Rectangle rectangle in list)
                {
                    Rect rectangle2 = new Rect((double)((float)rectangle.X * float_0), (double)((float)rectangle.Y * float_1), (double)((float)rectangle.Width * float_0), (double)((float)rectangle.Height * float_1));
                    drawingContext_0.DrawRectangle(null, new System.Windows.Media.Pen(System.Windows.Media.Brushes.Pink, 2.0), rectangle2);
                }
            }
        }
Пример #21
0
 public GClass844(GClass839 gclass839_1, TargetMap targetMap_1, string string_1, int int_2 = -2147483648)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, string_1 + "_" + targetMap_1.GetName(), int_2);
     this.Map = targetMap_1;
 }
Пример #22
0
 private void method_2()
 {
     for (;;)
     {
         foreach (KeyValuePair <string, GClass871> keyValuePair in this.BotControllers)
         {
             GClass872.< > c__DisplayClass29_0 CS$ < > 8__locals1 = new GClass872.< > c__DisplayClass29_0();
             GClass871 value = keyValuePair.Value;
             CS$ < > 8__locals1.gclass839_0 = ((value != null) ? value.Context : null);
             if (CS$ < > 8__locals1.gclass839_0 != null)
             {
                 GClass872.< > c__DisplayClass29_0 CS$ < > 8__locals2 = CS$ < > 8__locals1;
                 string    str        = "Core-MainBotController-";
                 GClass839 gclass839_ = CS$ < > 8__locals1.gclass839_0;
                 string    str2;
                 if (gclass839_ == null)
                 {
                     str2 = null;
                 }
                 else
                 {
                     AccountSettings account = gclass839_.Account;
                     str2 = ((account != null) ? account.BotId : null);
                 }
                 CS$ < > 8__locals2.logger_0 = LogManager.GetLogger(str + str2);
                 try
                 {
                     bool flag = CS$ < > 8__locals1.gclass839_0.Game.Connection.Socket.method_2();
                     if (CS$ < > 8__locals1.gclass839_0.ShouldBeDisabled && !flag && CS$ < > 8__locals1.gclass839_0.Game.IsLoggedOut)
                     {
                         CS$ < > 8__locals1.gclass839_0.IsEnabled        = false;
                         CS$ < > 8__locals1.gclass839_0.ShouldBeDisabled = false;
                         CS$ < > 8__locals1.gclass839_0.Stop();
                         foreach (GClass841 gclass in CS$ < > 8__locals1.gclass839_0.Scheduler.list_0)
                         {
                             gclass.ForceStop();
                         }
                     }
                     if (CS$ < > 8__locals1.gclass839_0.IsEnabled)
                     {
                         CS$ < > 8__locals1.gclass839_0.Game.Settings.Use3D = true;
                         if (CS$ < > 8__locals1.gclass839_0.LastLogin.Cooldown(60000))
                         {
                             Task loginTask = CS$ < > 8__locals1.gclass839_0.LoginTask;
                             if (loginTask == null || loginTask.IsCompleted)
                             {
                                 CS$ < > 8__locals1.gclass839_0.LoginTask = Task.Run(new Action(CS$ < > 8__locals1.gclass839_0.method_61));
                             }
                         }
                         if (CS$ < > 8__locals1.gclass839_0.Game.IsLoggedIn)
                         {
                             if (CS$ < > 8__locals1.gclass839_0.LastDisconnectReason == ErrorReason.CantLogin)
                             {
                                 CS$ < > 8__locals1.gclass839_0.LastDisconnectReason = ErrorReason.Unknown;
                             }
                             if (CS$ < > 8__locals1.gclass839_0.BackgroundQueue != null && CS$ < > 8__locals1.gclass839_0.BackgroundQueue.Any <Func <DarkOrbitWebAPI, object> >())
                             {
                                 for (;;)
                                 {
                                     GClass872.< > c__DisplayClass29_1 CS$ < > 8__locals3 = new GClass872.< > c__DisplayClass29_1();
                                     CS$ < > 8__locals3.< > c__DisplayClass29_0_0 = CS$ < > 8__locals1;
                                     if (!CS$ < > 8__locals3.< > c__DisplayClass29_0_0.gclass839_0.BackgroundQueue.TryDequeue(out CS$ < > 8__locals3.func_0))
                                     {
                                         break;
                                     }
                                     Task lastBackgroundAction = CS$ < > 8__locals3.< > c__DisplayClass29_0_0.gclass839_0.LastBackgroundAction;
                                     if (lastBackgroundAction != null && !lastBackgroundAction.IsCompleted)
                                     {
                                         break;
                                     }
                                     CS$ < > 8__locals3.< > c__DisplayClass29_0_0.gclass839_0.LastBackgroundAction = Task.Run <object>(new Func <object>(CS$ < > 8__locals3.method_0));
                                 }
                             }
                             foreach (GInterface9 ginterface in CS$ < > 8__locals1.gclass839_0.method_59())
                             {
                                 Task lastBackgroundHandlerAction = CS$ < > 8__locals1.gclass839_0.LastBackgroundHandlerAction;
                                 if ((lastBackgroundHandlerAction == null || lastBackgroundHandlerAction.IsCompleted) && ginterface.imethod_0())
                                 {
                                     CS$ < > 8__locals1.gclass839_0.LastBackgroundHandlerAction = Task.Run(new Action(ginterface.Execute));
                                 }
                             }
                             string activeHangarName = CS$ < > 8__locals1.gclass839_0.Game.Web.Equipment.ActiveHangarName;
                             if (!string.IsNullOrWhiteSpace(activeHangarName))
                             {
                                 GClass841 gclass2 = CS$ < > 8__locals1.gclass839_0.Scheduler.method_11();
                                 bool      flag2   = CS$ < > 8__locals1.gclass839_0.IsPaused || gclass2.ShouldBeInGame();
                                 if (activeHangarName != null && gclass2.ShouldChangeHangar(out CS$ < > 8__locals1.string_0) && CS$ < > 8__locals1.string_0 != activeHangarName)
                                 {
                                     if (CS$ < > 8__locals1.gclass839_0.Game.IsLoggedOut && !CS$ < > 8__locals1.gclass839_0.dateTimeOffset_4.Cooldown(900000))
                                     {
                                         flag2 = false;
                                         if (CS$ < > 8__locals1.gclass839_0.Cooldowns.method_2(BotAction.ChangeHangar, 10000.0))
                                         {
                                             bool flag3;
                                             CS$ < > 8__locals1.gclass839_0.method_9 <bool>("ChangeHangar", new Func <DarkOrbitWebAPI, bool>(CS$ < > 8__locals1.method_0), out flag3);
                                         }
                                     }
                                     else
                                     {
                                         flag2 = true;
                                         CS$ < > 8__locals1.gclass839_0.ForceLogout = true;
                                     }
                                 }
                                 if (!flag)
                                 {
                                     if (flag2 && CS$ < > 8__locals1.gclass839_0.LastMapLogin.Cooldown(10000) && CS$ < > 8__locals1.gclass839_0.dateTime_2.Cooldown(1000))
                                     {
                                         CS$ < > 8__locals1.gclass839_0.LastMapLogin           = DateTime.Now;
                                         CS$ < > 8__locals1.gclass839_0.Game.Settings.IsClient = (CS$ < > 8__locals1.gclass839_0.Game.Connection.ProxySocket == null);
                                         CS$ < > 8__locals1.gclass839_0.Game.Start();
                                     }
                                 }
                                 else if (!CS$ < > 8__locals1.gclass839_0.Run)
                                 {
                                     CS$ < > 8__locals1.gclass839_0.Start(true);
                                 }
                             }
                         }
                     }
                 }
Пример #23
0
 public GClass849(GClass839 gclass839_1, TargetMap targetMap_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, targetMap_1, "G", int.MinValue);
     this.GalaxyGateType = MapUtils.smethod_10((int)targetMap_1);
 }
Пример #24
0
 public GClass850(GClass839 gclass839_1, TargetMap targetMap_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, targetMap_1);
 }
Пример #25
0
 public GClass845(GClass839 gclass839_1, TargetMap targetMap_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, targetMap_1, "S", int.MinValue);
 }
Пример #26
0
 public GClass847(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, TargetMap.FL_ATLAS_A);
 }
Пример #27
0
 public GClass857(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1);
 }
Пример #28
0
 public GClass866(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, "DroneRepair");
 }
Пример #29
0
 public GClass862(GClass839 gclass839_1, GClass846 gclass846_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1);
     this.Module = gclass846_1;
 }
Пример #30
0
 public GClass867(GClass839 gclass839_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor(gclass839_1, "GgInfoProvider");
 }