Esempio n. 1
0
 public PlayerData.PlayerHistory GetPlayerHistory(string _Name)
 {
     if (PlayersHistory.ContainsKey(_Name) == false)
     {
         PlayersHistory.Add(_Name, new PlayerData.PlayerHistory());
     }
     return(PlayersHistory[_Name]);
 }
Esempio n. 2
0
 public PlayerData.PlayerHistory FindPlayerHistory(string _Name)
 {
     if (PlayersHistory.ContainsKey(_Name) == false)
     {
         return(null);
     }
     return(PlayersHistory[_Name]);
 }
Esempio n. 3
0
 public bool FindPlayerAtTime(string _Name, DateTime _DateTime, out PlayerData.Player _RetPlayer)
 {
     _RetPlayer = null;
     try
     {
         PlayerData.PlayerHistory playerHistory;
         if (PlayersHistory.TryGetValue(_Name, out playerHistory))
         {
             return(playerHistory.GetPlayerAtTime(_Name, Realm, _DateTime, out _RetPlayer));
         }
         return(false);
     }
     catch (Exception)
     {}
     return(false);
 }
Esempio n. 4
0
        public void RemoveGMs()
        {
            List <string> removePlayers = new List <string>();

            foreach (var player in Players)
            {
                var headItem  = player.Value.Gear.GetItem(ItemSlot.Head);
                var chestItem = player.Value.Gear.GetItem(ItemSlot.Chest);
                var feetItem  = player.Value.Gear.GetItem(ItemSlot.Feet);
                if ((headItem != null && headItem.ItemID == 12064) || //GM Hood
                    (chestItem != null && chestItem.ItemID == 2586) || //GM Chest
                    (feetItem != null && feetItem.ItemID == 11508)) //GM Feet
                {
                    removePlayers.Add(player.Key);
                }
            }
            foreach (var player in removePlayers)
            {
                Players.Remove(player);
                PlayersHistory.Remove(player);
            }
        }
Esempio n. 5
0
 public void RemoveUnknowns()
 {
     Players.Remove("Unknown");
     PlayersHistory.Remove("Unknown");
 }