Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 internal void UpdatePointers()
 {
     if (Process.GetProcessesByName("re7").FirstOrDefault() == null)
     {
         return;
     }
     if (!connected)
     {
         Initialize(Process.GetProcessesByName("re7").FirstOrDefault().Id); return;
     }
     else
     {
         PointerMrEverythingCount.UpdatePointers();
         PointerDA.UpdatePointers();
         PointerMapName.UpdatePointers();
         PointerHP.UpdatePointers();
         PointerBagCount.UpdatePointers();
         PointerInventoryCount.UpdatePointers();
         PointerInventorySlotSelected.UpdatePointers();
         PointerEnemyEntryCount.UpdatePointers();
         GenerateEnemyEntries(); // This has to be here for the next part.
         for (int i = 0; i < PointerEnemyEntries.Length; ++i)
         {
             PointerEnemyEntries[i].UpdatePointers();
         }
     }
 }
        /// <summary>
        ///
        /// </summary>
        internal void UpdatePointers()
        {
            PointerEventActionType.UpdatePointers();
            PointerIsMotionPlay.UpdatePointers();
            PointerEventActionTask.UpdatePointers();

            PointerPlayerStatus.UpdatePointers();
            PointerPlayerHP.UpdatePointers();
            PointerPlayerPosition.UpdatePointers();

            PointerRankManager.UpdatePointers();
            PointerInventory.UpdatePointers();

            try
            {
                PointerEnemyCount.UpdatePointers();
                PointerEnemyEntryList.UpdatePointers();

                GenerateEnemyEntries();

                PointerInventoryCount.UpdatePointers();
                PointerInventoryEntryList.UpdatePointers();
                GenerateItemEntries();
            }
            catch
            {
                // May fail in main menu
            }
        }