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)); }
private bool RunGameFilter(EntityDef entityDef, CollectionFilter <GAME_TAG> filter) { GAME_TAG key = filter.GetKey(); return(filter.DoesValueMatch(entityDef.GetTag(key))); }