Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using Comfort.Common;
- using EFT;
- namespace DebugMonitor
- {
- // Token: 0x020019D5 RID: 6613
- public static class Monitor
- {
- // Token: 0x06009372 RID: 37746
- public static void UP_M_P()
- {
- Player player = null;
- List<Player> list = new List<Player>();
- List<Corpse> list2 = new List<Corpse>();
- List<LootItem> list3 = new List<LootItem>();
- foreach (GInterface18 ginterface2 in Monitor.gameWorld.LootList)
- {
- GInterface14 ginterface = (GInterface14)ginterface2;
- if (ginterface != null)
- {
- Corpse corpse = ginterface as Corpse;
- if (corpse != null)
- {
- list2.Add(corpse);
- }
- else
- {
- LootItem lootItem = ginterface as LootItem;
- if (lootItem != null && lootItem.ItemOwner != null && lootItem.ItemOwner.RootItem != null)
- {
- list3.Add(lootItem);
- }
- }
- }
- }
- foreach (Player player2 in Monitor.gameWorld.RegisteredPlayers)
- {
- if (!(player2 == null))
- {
- if (player2.gameObject.GetComponent<PlayerOwner>() != null)
- {
- player = player2;
- }
- else
- {
- list.Add(player2);
- }
- }
- }
- Monitor.localPlayer = player;
- Monitor.gamePlayers = list;
- Monitor.wangWang = list2;
- Monitor.lps = list3;
- }
- // Token: 0x06009373 RID: 37747
- public static void U_G_W()
- {
- if (Monitor.gameWorld == null)
- {
- Monitor.gameWorld = Singleton<GameWorld>.Instance;
- Monitor.gamePlayers.Clear();
- return;
- }
- Monitor.UP_M_P();
- if (Monitor.localPlayer == null)
- {
- Monitor.gamePlayers.Clear();
- return;
- }
- }
- // Token: 0x06009374 RID: 37748
- static Monitor()
- {
- Monitor.wangWang = new List<Corpse>();
- }
- // Token: 0x04008855 RID: 34901
- public static Player localPlayer = null;
- // Token: 0x04008856 RID: 34902
- public static GameWorld gameWorld = null;
- // Token: 0x04008857 RID: 34903
- public static List<Player> gamePlayers = new List<Player>();
- // Token: 0x04008858 RID: 34904
- public static List<Corpse> wangWang;
- // Token: 0x04008859 RID: 34905
- public static List<LootItem> lps = new List<LootItem>();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement