예제 #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
파일: DpsMeter.cs 프로젝트: benjy3gg/PoeHud
 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);
     }
 }