Пример #1
0
 public static bool CheckVisible(Tradeable tradable)
 {
     return(SearchUtility.regulatedKeyword.Length <= 0 || SearchUtility.RegulateString(tradable.LabelCap).Contains(SearchUtility.regulatedKeyword));
 }
Пример #2
0
 private static List <Tradeable> QueryTradable(List <Tradeable> cachedTradeables)
 {
     return(cachedTradeables.Where(x => SearchUtility.CheckVisible(x)).ToList());
 }
Пример #3
0
 public static bool CheckVisible(ThingDef thing)
 {
     return(SearchUtility.regulatedKeyword.Length <= 0 || SearchUtility.RegulateString(thing.LabelCap).Contains(SearchUtility.regulatedKeyword));
 }
Пример #4
0
 public static void ResetKeyword()
 {
     SearchUtility.Reset();
 }