예제 #1
0
    public static TItemCollectionFilter CreateBlank(EnumSetting rarities, EnumSetting books)
    {
        FloatRange costRange = FloatRange.Create();

        costRange.SetRange(float.NegativeInfinity, float.PositiveInfinity);
        FlagsEnumSetting allowedRarities = FlagsEnumSetting.CreateBlank(rarities, true);
        FlagsEnumSetting allowedBooks    = FlagsEnumSetting.CreateBlank(books, true);

        return(Create("", "", costRange, allowedRarities, allowedBooks));
    }
예제 #2
0
    public static TQualityCollectionFilter CreateBlank(EnumSetting rarities, EnumSetting books, EnumSetting qualityTypes)
    {
        FloatRange costRange = FloatRange.Create();

        costRange.SetRange(float.NegativeInfinity, float.PositiveInfinity);
        FlagsEnumSetting allowedRarities       = FlagsEnumSetting.CreateBlank(rarities, true);
        FlagsEnumSetting allowedBooks          = FlagsEnumSetting.CreateBlank(books, true);
        FlagsEnumSetting allowedQualityTypes   = FlagsEnumSetting.CreateBlank(qualityTypes, true);
        IntRange         bonusEquivalencyRange = IntRange.Create();

        bonusEquivalencyRange.SetRange(int.MinValue, int.MaxValue);
        return(Create("", "", costRange, allowedRarities, allowedBooks, allowedQualityTypes, bonusEquivalencyRange));
    }
    public static SpellCollectionFilter CreateBlank(EnumSetting allowances, EnumSetting rarities,
                                                    EnumSetting creatorClasses, EnumSetting books)
    {
        FlagsEnumSetting allowedPotionAllowances = FlagsEnumSetting.CreateBlank(allowances, true);
        FlagsEnumSetting allowedScrollAllowances = FlagsEnumSetting.CreateBlank(allowances, true);
        FlagsEnumSetting allowedWandAllowances   = FlagsEnumSetting.CreateBlank(allowances, true);
        FlagsEnumSetting allowedPotionRarities   = FlagsEnumSetting.CreateBlank(rarities, true);
        FlagsEnumSetting allowedScrollRarities   = FlagsEnumSetting.CreateBlank(rarities, true);
        FlagsEnumSetting allowedWandRarities     = FlagsEnumSetting.CreateBlank(rarities, true);
        FlagsEnumSetting allowedCreators         = FlagsEnumSetting.CreateBlank(creatorClasses, true);
        IntRange         levelRange = IntRange.Create();

        levelRange.SetRange(0, 9);
        FloatRange materialCostRange = FloatRange.Create();

        materialCostRange.SetRange(0f, float.PositiveInfinity);
        FlagsEnumSetting allowedBooks = FlagsEnumSetting.CreateBlank(books, true);

        return(Create("", "", allowedPotionAllowances, allowedScrollAllowances, allowedWandAllowances,
                      allowedPotionRarities, allowedScrollRarities, allowedWandRarities, allowedCreators,
                      levelRange, materialCostRange, allowedBooks));
    }