public static void AddFilterType(LevelFilter filter) { foreach (string option in filter.options) { filterTypes.Add(option, filter); } }
public LevelFilterResult(LevelFilter filter) { filters = new List <LevelFilter>() { filter }; success = true; }
public static LevelFilterResult FilterFromOptionAndString(string option, string data) { LevelFilter filter = null; if (!filterTypes.TryGetValue(option, out filter)) { return(new LevelFilterResult($"The option {option} does not exist.")); } return(filter.FromChatString(data, option)); }
public void AddFilter(LevelFilter filter) { filters.Add(filter); }