Exemplo n.º 1
0
        public void Remove(BasePlayer oldHenchman)
        {
            Henchman itemToRemove = henchmen.SingleOrDefault(o => o.Player == oldHenchman);

            if (itemToRemove != null)
            {
                henchmen.Remove(itemToRemove);
            }
        }
Exemplo n.º 2
0
 public bool TryResolveByPartialName(string partialName, out Henchman matchingHenchman)
 {
     matchingHenchman = henchmen.SingleOrDefault(o => o.Player.displayName.IndexOf(partialName, StringComparison.InvariantCultureIgnoreCase) != -1);
     return(matchingHenchman != null);
 }
Exemplo n.º 3
0
 public bool TryResovleByPlayer(BasePlayer player, out Henchman matchingHenchman)
 {
     matchingHenchman = henchmen.SingleOrDefault(o => o.Player == player);
     return(matchingHenchman != null);
 }