Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.19 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using Comfort.Common;
  4. using EFT;
  5.  
  6. namespace DebugMonitor
  7. {
  8.     // Token: 0x020019D5 RID: 6613
  9.     public static class Monitor
  10.     {
  11.         // Token: 0x06009372 RID: 37746
  12.         public static void UP_M_P()
  13.         {
  14.             Player player = null;
  15.             List<Player> list = new List<Player>();
  16.             List<Corpse> list2 = new List<Corpse>();
  17.             List<LootItem> list3 = new List<LootItem>();
  18.             foreach (GInterface18 ginterface2 in Monitor.gameWorld.LootList)
  19.             {
  20.                 GInterface14 ginterface = (GInterface14)ginterface2;
  21.                 if (ginterface != null)
  22.                 {
  23.                     Corpse corpse = ginterface as Corpse;
  24.                     if (corpse != null)
  25.                     {
  26.                         list2.Add(corpse);
  27.                     }
  28.                     else
  29.                     {
  30.                         LootItem lootItem = ginterface as LootItem;
  31.                         if (lootItem != null && lootItem.ItemOwner != null && lootItem.ItemOwner.RootItem != null)
  32.                         {
  33.                             list3.Add(lootItem);
  34.                         }
  35.                     }
  36.                 }
  37.             }
  38.             foreach (Player player2 in Monitor.gameWorld.RegisteredPlayers)
  39.             {
  40.                 if (!(player2 == null))
  41.                 {
  42.                     if (player2.gameObject.GetComponent<PlayerOwner>() != null)
  43.                     {
  44.                         player = player2;
  45.                     }
  46.                     else
  47.                     {
  48.                         list.Add(player2);
  49.                     }
  50.                 }
  51.             }
  52.             Monitor.localPlayer = player;
  53.             Monitor.gamePlayers = list;
  54.             Monitor.wangWang = list2;
  55.             Monitor.lps = list3;
  56.         }
  57.  
  58.         // Token: 0x06009373 RID: 37747
  59.         public static void U_G_W()
  60.         {
  61.             if (Monitor.gameWorld == null)
  62.             {
  63.                 Monitor.gameWorld = Singleton<GameWorld>.Instance;
  64.                 Monitor.gamePlayers.Clear();
  65.                 return;
  66.             }
  67.             Monitor.UP_M_P();
  68.             if (Monitor.localPlayer == null)
  69.             {
  70.                 Monitor.gamePlayers.Clear();
  71.                 return;
  72.             }
  73.         }
  74.  
  75.         // Token: 0x06009374 RID: 37748
  76.         static Monitor()
  77.         {
  78.             Monitor.wangWang = new List<Corpse>();
  79.         }
  80.  
  81.         // Token: 0x04008855 RID: 34901
  82.         public static Player localPlayer = null;
  83.  
  84.         // Token: 0x04008856 RID: 34902
  85.         public static GameWorld gameWorld = null;
  86.  
  87.         // Token: 0x04008857 RID: 34903
  88.         public static List<Player> gamePlayers = new List<Player>();
  89.  
  90.         // Token: 0x04008858 RID: 34904
  91.         public static List<Corpse> wangWang;
  92.  
  93.         // Token: 0x04008859 RID: 34905
  94.         public static List<LootItem> lps = new List<LootItem>();
  95.     }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement