public bool DoesValueMatch(bool val) { foreach (object obj2 in this.m_values) { CollectionFilterFunc func = this.m_func; if (func != CollectionFilterFunc.EQUAL) { if (func == CollectionFilterFunc.NOT_EQUAL) { goto Label_004B; } continue; } if (!val.Equals(obj2)) { continue; } return(true); Label_004B: if (!val.Equals(obj2)) { return(true); } } return(false); }
public bool DoesValueMatch(string val) { foreach (object obj2 in this.m_values) { string str = obj2.ToString(); CollectionFilterFunc func = this.m_func; if (func != CollectionFilterFunc.EQUAL) { if (func == CollectionFilterFunc.NOT_EQUAL) { goto Label_0052; } continue; } if (!(val == str)) { continue; } return(true); Label_0052: if (val != str) { return(true); } } return(false); }
public void AddGameFilter(GAME_TAG key, object val, CollectionFilterFunc func) { foreach (CollectionArtFilterSet set in this.m_artFilterSets) { set.AddGameFilter(key, val, func); } }
public CostRequirement(string stringKey, int minNumberOfCards, int costFilterValue, CollectionFilterFunc costFilterFunc) { this.m_displayStringKey = stringKey; this.m_minNumCards = minNumberOfCards; this.m_costFilterValue = costFilterValue; this.m_costFilterFunc = costFilterFunc; }
public void AddAccountFilter(ACCOUNT_TAG key, object val, CollectionFilterFunc func) { foreach (CollectionArtFilterSet set in this.m_artFilterSets) { set.AddAccountFilter(key, val, func); } }
public bool HasGameFilter(GAME_TAG key, object val, CollectionFilterFunc func) { List <object> values = new List <object> { val }; return(this.HasGameFilter(key, values, func)); }
public bool HasAccountFilter(ACCOUNT_TAG key, object val, CollectionFilterFunc func) { List <object> values = new List <object> { val }; return(this.HasAccountFilter(key, values, func)); }
public void AddGameFilter(GAME_TAG key, object val, CollectionFilterFunc func) { if (!this.HasGameFilter(key, val, func)) { CollectionFilter <GAME_TAG> item = new CollectionFilter <GAME_TAG>(); item.SetKey(key); item.SetValue(val); item.SetFunc(func); this.m_gameFilters.Add(item); } }
public void AddAccountFilter(ACCOUNT_TAG key, object val, CollectionFilterFunc func) { if (!this.HasAccountFilter(key, val, func)) { CollectionFilter <ACCOUNT_TAG> item = new CollectionFilter <ACCOUNT_TAG>(); item.SetKey(key); item.SetValue(val); item.SetFunc(func); this.m_accountFilters.Add(item); } }
public void RemoveGameFilter(GAME_TAG key, object val, CollectionFilterFunc func) { for (int i = 0; i < this.m_gameFilters.Count; i++) { CollectionFilter <GAME_TAG> filter = this.m_gameFilters[i]; if (((((GAME_TAG)filter.GetKey()) == key) && filter.HasValue(val)) && (filter.GetFunc() == func)) { this.m_gameFilters.RemoveAt(i); return; } } }
public bool HasGameFilter(GAME_TAG key, List <object> values, CollectionFilterFunc func) { foreach (CollectionFilter <GAME_TAG> filter in this.m_gameFilters) { if (((GAME_TAG)filter.GetKey()) != key) { continue; } bool flag = values.Count > 0; foreach (object obj2 in values) { if (!filter.HasValue(obj2)) { flag = false; break; } } if (flag && (filter.GetFunc() == func)) { return(true); } } return(false); }
public void SetFunc(CollectionFilterFunc func) { this.m_func = func; }