Beispiel #1
0
        public void Remove(BasePlayer oldOutlaw)
        {
            Outlaw itemToRemove = outlaws.SingleOrDefault(o => o.Player == oldOutlaw);

            if (itemToRemove != null)
            {
                outlaws.Remove(itemToRemove);
            }
        }
Beispiel #2
0
 public bool TryResolveByPartialName(string partialName, out Outlaw matchingOutlaw)
 {
     matchingOutlaw = outlaws.SingleOrDefault(o => o.Player.displayName.IndexOf(partialName, StringComparison.InvariantCultureIgnoreCase) != -1);
     return(matchingOutlaw != null);
 }
Beispiel #3
0
 public bool TryResovleByPlayer(BasePlayer player, out Outlaw matchingOutlaw)
 {
     matchingOutlaw = outlaws.SingleOrDefault(o => o.Player == player);
     return(matchingOutlaw != null);
 }