Ejemplo n.º 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]);
 }