public static Color Color(this FilterBoolean filterBoolean) { switch (filterBoolean) { case FilterBoolean.AndFiltering: return(Verse.ColorLibrary.BurntOrange); case FilterBoolean.OrFiltering: return(Verse.ColorLibrary.BrightBlue); default: return(UnityEngine.Color.black); } }
public static string ToStringHuman(this FilterBoolean filterBool) { switch (filterBool) { case FilterBoolean.AndFiltering: return("PLMWTT_FilterBooleanOr".Translate()); case FilterBoolean.OrFiltering: return("PLMWTT_FilterBooleanAnd".Translate()); default: return("UNK"); } }
public static FilterBoolean Next(this FilterBoolean filterBoolean) { return((FilterBoolean)(((int)filterBoolean + 1) % (int)FilterBoolean.Undefined)); }