Пример #1
0
 internal static void RetrieveCorpse()
 {
     if (!ObjectManager.Instance.IsIngame)
     {
         return;
     }
     if (RetrieveCorpseFunction == null)
     {
         RetrieveCorpseFunction = Memory.Reader.RegisterDelegate <UnmanagedNoParamsDelegate>(funcs.RetrieveCorpse);
     }
     MainThread.Instance.Invoke(() => RetrieveCorpseFunction());
 }
Пример #2
0
 internal static int GetLootSlots()
 {
     if (!ObjectManager.Instance.IsIngame)
     {
         return(0);
     }
     if (GetLootSlotsFunction == null)
     {
         GetLootSlotsFunction = Memory.Reader.RegisterDelegate <UnmanagedNoParamsDelegate>(funcs.GetLootSlots);
     }
     return(MainThread.Instance.Invoke(() => GetLootSlotsFunction()));
 }