예제 #1
0
 public static void AddFilterType(LevelFilter filter)
 {
     foreach (string option in filter.options)
     {
         filterTypes.Add(option, filter);
     }
 }
예제 #2
0
 public LevelFilterResult(LevelFilter filter)
 {
     filters = new List <LevelFilter>()
     {
         filter
     };
     success = true;
 }
예제 #3
0
        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));
        }
예제 #4
0
 public void AddFilter(LevelFilter filter)
 {
     filters.Add(filter);
 }