Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
            }
        }
Exemple #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();
        }
Exemple #6
0
 private void OnAreaChanged(AreaController area)
 {
     ignoredEntities.Clear();
     RemoveOldEntitiesFromCache();
 }
Exemple #7
0
 public override void OnAreaChange(AreaController area)
 {
     if (Settings.Enabled) {
         this.Parse();
     }
 }
Exemple #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";
 }
Exemple #9
0
 public override void OnAreaChange(AreaController area)
 {
     currentIcons.Clear();
 }
Exemple #10
0
 public override void OnAreaChange(AreaController area)
 {
     lastEntities = new Dictionary<int, int>();
     hasStarted = false;
     maxDps = 0;
 }
Exemple #11
0
 public override void OnAreaChange(AreaController area)
 {
     alreadyAlertedOf.Clear();
     alertsText.Clear();
     currentIcons.Clear();
 }
Exemple #12
0
 public override void OnAreaChange(AreaController area)
 {
     playedSoundsCache.Clear();
 }
Exemple #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);
            //}
        }
Exemple #14
0
 public virtual void OnAreaChange(AreaController area)
 {
 }
Exemple #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);
     }
 }