コード例 #1
0
    public CollectionFilterSet(bool mustPassAllFilters)
    {
        IEnumerator enumerator = Enum.GetValues(typeof(TAG_PREMIUM)).GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                TAG_PREMIUM current = (TAG_PREMIUM)((int)enumerator.Current);
                if (!ApplicationMgr.IsInternal() || !this.ShouldSkipPremiumType(current))
                {
                    CollectionArtFilterSet item = new CollectionArtFilterSet(new CardFlair(current), mustPassAllFilters);
                    this.m_artFilterSets.Add(item);
                }
            }
        }
        finally
        {
            IDisposable disposable = enumerator as IDisposable;
            if (disposable == null)
            {
            }
            disposable.Dispose();
        }
    }
コード例 #2
0
    public List <FilteredArtStack> GenerateList()
    {
        List <FilteredArtStack> list;

        if (this.m_flairRestriction != null)
        {
            CollectionArtFilterSet set = this.m_artFilterSets.Find(obj => obj.Flair.Equals(this.m_flairRestriction));
            if (set == null)
            {
                Debug.LogError("Generate List: artFilterSet is null");
            }
            list = set.GenerateList();
        }
        else
        {
            list = CollectionArtFilterSet.GenerateUnion(this.m_artFilterSets);
        }
        if (this.m_onlyCraftable)
        {