예제 #1
0
        public void Remove(BasePlayer oldHenchman)
        {
            Henchman itemToRemove = henchmen.SingleOrDefault(o => o.Player == oldHenchman);

            if (itemToRemove != null)
            {
                henchmen.Remove(itemToRemove);
            }
        }
예제 #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);
 }
예제 #3
0
 public bool TryResovleByPlayer(BasePlayer player, out Henchman matchingHenchman)
 {
     matchingHenchman = henchmen.SingleOrDefault(o => o.Player == player);
     return(matchingHenchman != null);
 }