Пример #1
0
 protected override void SetupFromSplitJsonString(string[] splitJsonString)
 {
     nameSearch      = CreateStringFromSafeJson(splitJsonString[0]);
     nameStartsWith  = CreateStringFromSafeJson(splitJsonString[1]);
     costRange       = FloatRange.CreateFromJsonString(splitJsonString[2]);
     allowedRarities = FlagsEnumSetting.CreateFromJsonString(splitJsonString[3]);
     allowedBooks    = FlagsEnumSetting.CreateFromJsonString(splitJsonString[4]);
 }
 protected override void SetupFromSplitJsonString(string[] splitJsonString)
 {
     nameSearch              = CreateStringFromSafeJson(splitJsonString[0]);
     nameStartsWith          = CreateStringFromSafeJson(splitJsonString[1]);
     allowedPotionAllowances = FlagsEnumSetting.CreateFromJsonString(splitJsonString[2]);
     allowedScrollAllowances = FlagsEnumSetting.CreateFromJsonString(splitJsonString[3]);
     allowedWandAllowances   = FlagsEnumSetting.CreateFromJsonString(splitJsonString[4]);
     allowedPotionRarities   = FlagsEnumSetting.CreateFromJsonString(splitJsonString[5]);
     allowedScrollRarities   = FlagsEnumSetting.CreateFromJsonString(splitJsonString[6]);
     allowedWandRarities     = FlagsEnumSetting.CreateFromJsonString(splitJsonString[7]);
     allowedCreators         = FlagsEnumSetting.CreateFromJsonString(splitJsonString[8]);
     levelRange              = IntRange.CreateFromJsonString(splitJsonString[9]);
     materialCostRange       = FloatRange.CreateFromJsonString(splitJsonString[10]);
     allowedBooks            = FlagsEnumSetting.CreateFromJsonString(splitJsonString[11]);
 }
Пример #3
0
    protected override void SetupFromSplitJsonString(string[] splitJsonString)
    {
        name              = splitJsonString[0];
        notes             = CreateStringFromSafeJson(splitJsonString[1]);
        size              = splitJsonString[2];
        frequencyModifier = Wrapper <float> .CreateFromJsonString(splitJsonString[3]);

        readyCash = Wrapper <float> .CreateFromJsonString(splitJsonString[4]);

        stockTypes           = FlagsEnumSetting.CreateFromJsonString(splitJsonString[5]);
        daysSinceLastRestock = Wrapper <int> .CreateFromJsonString(splitJsonString[6]);

        totalCash = Wrapper <float> .CreateFromJsonString(splitJsonString[7]);

        specificArmourCollection   = SpecificArmourCollection.CreateFromJsonString(splitJsonString[8]);
        specificPotionCollection   = SpecificPotionCollection.CreateFromJsonString(splitJsonString[9]);
        specificRingCollection     = SpecificRingCollection.CreateFromJsonString(splitJsonString[10]);
        specificRodCollection      = SpecificRodCollection.CreateFromJsonString(splitJsonString[11]);
        specificScrollCollection   = SpecificScrollCollection.CreateFromJsonString(splitJsonString[12]);
        specificStaffCollection    = SpecificStaffCollection.CreateFromJsonString(splitJsonString[13]);
        specificWandCollection     = SpecificWandCollection.CreateFromJsonString(splitJsonString[14]);
        specificWeaponCollection   = SpecificWeaponCollection.CreateFromJsonString(splitJsonString[15]);
        specificWondrousCollection = SpecificWondrousCollection.CreateFromJsonString(splitJsonString[16]);

        m_RarityPerCharacterClassPerSpellContainer = RarityPerCharacterClassPerSpellContainer.Load(splitJsonString[17]);
        m_BudgetRangePerPowerLevelPerStockType     = FloatRangePerPowerLevelPerStockType.Load(splitJsonString[18]);
        m_ArmourCollection               = ArmourCollection.Load(splitJsonString[19]);
        m_SpellCollection                = SpellCollection.Load(splitJsonString[20]);
        m_WeaponCollection               = WeaponCollection.Load(splitJsonString[21]);
        m_RingCollection                 = RingCollection.Load(splitJsonString[22]);
        m_RodCollection                  = RodCollection.Load(splitJsonString[23]);
        m_StaffCollection                = StaffCollection.Load(splitJsonString[24]);
        m_WondrousCollection             = WondrousCollection.Load(splitJsonString[25]);
        m_ArmourQualityCollection        = ArmourQualityCollection.Load(splitJsonString[26]);
        m_WeaponQualityCollection        = WeaponQualityCollection.Load(splitJsonString[27]);
        m_WeaponQualityConstraintsMatrix = WeaponQualityConstraintsMatrix.Load(splitJsonString[28]);
        m_ArmourQualityConstraintsMatrix = ArmourQualityConstraintsMatrix.Load(splitJsonString[29]);
    }