Exemple #1
0
 /// <summary>
 /// </summary>
 public static void StartMemoryWorkers()
 {
     StopMemoryWorkers();
     var id = SettingsView.View.PIDSelect.Text == "" ? GetProcessID() : Constants.ProcessID;
     Constants.IsOpen = true;
     if (id < 0)
     {
         Constants.IsOpen = false;
         return;
     }
     var process = Process.GetProcessById(id);
     MemoryHandler.Instance.SetProcess(process);
     MemoryHandler.Instance.SigScanner.LoadOffsets(AppViewModel.Instance.Signatures);
     _chatLogWorker = new ChatLogWorker();
     _chatLogWorker.StartScanning();
     _actorWorker = new ActorWorker();
     _actorWorker.StartScanning();
     _monsterWorker = new MonsterWorker();
     _monsterWorker.StartScanning();
     _playerInfoWorker = new PlayerInfoWorker();
     _playerInfoWorker.StartScanning();
     _targetWorker = new TargetWorker();
     _targetWorker.StartScanning();
     _partyInfoWorker = new PartyInfoWorker();
     _partyInfoWorker.StartScanning();
     _inventoryWorker = new InventoryWorker();
     _inventoryWorker.StartScanning();
 }
Exemple #2
0
 /// <summary>
 /// </summary>
 public static void StartMemoryWorkers()
 {
     StopMemoryWorkers();
     var id = SettingsView.View.PIDSelect.Text == "" ? GetProcessID() : Constants.ProcessModel.ProcessID;
     Constants.IsOpen = true;
     if (id < 0)
     {
         Constants.IsOpen = false;
         return;
     }
     MemoryHandler.Instance.SetProcess(Constants.ProcessModel, Settings.Default.GameLanguage);
     _chatLogWorker = new ChatLogWorker();
     _chatLogWorker.StartScanning();
     _actorWorker = new ActorWorker();
     _actorWorker.StartScanning();
     _playerInfoWorker = new PlayerInfoWorker();
     _playerInfoWorker.StartScanning();
     _targetWorker = new TargetWorker();
     _targetWorker.StartScanning();
     _partyInfoWorker = new PartyInfoWorker();
     _partyInfoWorker.StartScanning();
     _inventoryWorker = new InventoryWorker();
     _inventoryWorker.StartScanning();
 }