private bool RunAccountFilter(CollectionCardStack.ArtStack artStack, CollectionFilter <ACCOUNT_TAG> filter)
        {
            ACCOUNT_TAG key = filter.GetKey();

            if (key != ACCOUNT_TAG.OWNED_COUNT)
            {
                return((key == ACCOUNT_TAG.NEWEST_INSERT_DATE) && filter.DoesValueMatch(artStack.NewestInsertDate.Ticks));
            }
            return(filter.DoesValueMatch(artStack.Count));
        }
 public void RemoveAllGameFiltersByTag(GAME_TAG key)
 {
     for (int i = this.m_gameFilters.Count - 1; i >= 0; i--)
     {
         CollectionFilter <GAME_TAG> filter = this.m_gameFilters[i];
         if (((GAME_TAG)filter.GetKey()) == key)
         {
             this.m_gameFilters.RemoveAt(i);
         }
     }
 }
 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;
         }
     }
 }
        private bool RunGameFilter(EntityDef entityDef, CollectionFilter <GAME_TAG> filter)
        {
            GAME_TAG key = filter.GetKey();

            return(filter.DoesValueMatch(entityDef.GetTag(key)));
        }