Пример #1
0
 public GameController(Memory memory)
 {
     Memory = memory;
     Area = new AreaController(this);
     EntityListWrapper = new EntityListWrapper(this);
     Window = new GameWindow(memory.Process);
     Game = new TheGame(memory);
     Files = new FsController(memory);
 }
Пример #2
0
 public GameController(Memory memory)
 {
     Memory            = memory;
     Area              = new AreaController(this);
     EntityListWrapper = new EntityListWrapper(this);
     Window            = new GameWindow(memory.Process);
     Game              = new TheGame(memory);
     Files             = new FsController(memory);
 }
Пример #3
0
 public GameController(Memory memory)
 {
     this.Memory             = memory;
     this.Area               = new AreaController(this);
     this._entityListWrapper = new EntityListWrapper(this);
     this.Window             = new GameWindow(memory.Process);
     this.Internal           = new TheGame(memory);
     this.Files              = new FsController(memory);
 }
Пример #4
0
        private void OnAreaChange(AreaController area)
        {
            this.ignoredEntities.Clear();
            foreach (EntityWrapper current in this.entityCache.Values)
            {
                current.IsInList = false;
                this.Observer.EntityRemoved(current);
            }
            this.entityCache.Clear();
            int address = this.Root.Internal.IngameState.Data.LocalPlayer.Address;

            if (this.Player == null || this.Player.Address != address)
            {
                this.Player = new EntityWrapper(this.Root, address);
            }
        }
Пример #5
0
        public GameController(Memory memory)
        {
            Instance                = this;
            Memory                  = memory;
            Game                    = new TheGame(memory);
            GameStateController     = new GameStateController(memory, Game);
            CoroutineRunner         = new Runner("Main Coroutine");
            CoroutineRunnerParallel = new Runner("Parallel Coroutine");
            Area                    = new AreaController(this);
            EntityListWrapper       = new EntityListWrapper(this);
            Window                  = new GameWindow(memory.Process);
            Cache                   = new Cache();

            Files             = new FsController(memory);
            StashController   = new StashTabController();
            InGame            = InGameReal;
            IsForeGroundCache = WinApi.IsForegroundWindow(Window.Process.MainWindowHandle);
            MainTimer         = Stopwatch.StartNew();
        }
Пример #6
0
 private void OnAreaChanged(AreaController area)
 {
     ignoredEntities.Clear();
     RemoveOldEntitiesFromCache();
 }
Пример #7
0
 public override void OnAreaChange(AreaController area)
 {
     if (Settings.Enabled) {
         this.Parse();
     }
 }
Пример #8
0
 public override void OnAreaChange(AreaController area)
 {
     this.startXp = this.model.Player.GetComponent<Player>().XP;
     this.startTime = DateTime.Now;
     this.curTimeLeftString = "--h --m --s until level up";
 }
Пример #9
0
 public override void OnAreaChange(AreaController area)
 {
     currentIcons.Clear();
 }
Пример #10
0
 public override void OnAreaChange(AreaController area)
 {
     lastEntities = new Dictionary<int, int>();
     hasStarted = false;
     maxDps = 0;
 }
Пример #11
0
 public override void OnAreaChange(AreaController area)
 {
     alreadyAlertedOf.Clear();
     alertsText.Clear();
     currentIcons.Clear();
 }
Пример #12
0
 public override void OnAreaChange(AreaController area)
 {
     playedSoundsCache.Clear();
 }
Пример #13
0
        private void OnAreaChanged(AreaController area)
        {
            ignoredEntities.Clear();
            RemoveOldEntitiesFromCache();

            //int address = gameController.Game.IngameState.Data.LocalPlayer.Address;
            //if (Player == null || Player.Address != address)
            //{
            //    Player = new EntityWrapper(gameController, address);
            //}
        }
Пример #14
0
 public virtual void OnAreaChange(AreaController area)
 {
 }
Пример #15
0
 private void OnAreaChange(AreaController area)
 {
     this.ignoredEntities.Clear();
     foreach (EntityWrapper current in this.entityCache.Values)
     {
         current.IsInList = false;
         this.Observer.EntityRemoved(current);
     }
     this.entityCache.Clear();
     int address = this.Root.Internal.IngameState.Data.LocalPlayer.Address;
     if (this.Player == null || this.Player.Address != address) {
         this.Player = new EntityWrapper(this.Root, address);
     }
 }