public virtual void Say(string message, ChatLogFilters chatFilter = ChatLogFilters.CHATLOGFILTERS_SAY) { if (string.IsNullOrEmpty(message)) { return; } foreach (Player Plr in PlayersInRange.ToArray()) { Plr.SendMessage(this, message, chatFilter); } }
/// <summary> /// Get players that are close and members of a given realm. /// </summary> /// <param name="capturingRealm"></param> /// <returns></returns> private ISet <Player> GetClosePlayers(Realms capturingRealm) { var applicablePlayerList = PlayersInRange.Where(x => x.Realm == capturingRealm).ToList(); return(GetClosePlayers(applicablePlayerList)); }