public static bool CheckVisible(Tradeable tradable) { return(SearchUtility.regulatedKeyword.Length <= 0 || SearchUtility.RegulateString(tradable.LabelCap).Contains(SearchUtility.regulatedKeyword)); }
private static List <Tradeable> QueryTradable(List <Tradeable> cachedTradeables) { return(cachedTradeables.Where(x => SearchUtility.CheckVisible(x)).ToList()); }
public static bool CheckVisible(ThingDef thing) { return(SearchUtility.regulatedKeyword.Length <= 0 || SearchUtility.RegulateString(thing.LabelCap).Contains(SearchUtility.regulatedKeyword)); }
public static void ResetKeyword() { SearchUtility.Reset(); }