public ConstellationPreset(JSONObject json_, PresetLimits limits_) { if (json_ == null) { json_ = new JSONObject(); } Json = json_; Constellation = App.Content.ConstellationList[App.Content.GameSettings.Json["constellation"]]; //Constellation = App.Content.ConstellationList[json["constellation"]]; Limits = limits_; foreach (var almostValue in Json["abilities"]) { SelectedAbilityList.Add(App.Content.SkillList.Abilities[almostValue.Value]); } foreach (var almostValue in Json["classes"]) { SelectedClassList.Add(App.Content.SkillList.Classes[almostValue.Value]); } foreach (var almostValue in Json["kits"]) { SelectedKitList.Add(App.Content.SkillList.Kits[almostValue.Value]); } }
public void Clear() { SelectedAbilityList.Clear(); SelectedClassList.Clear(); SelectedKitList.Clear(); PresetUpdated(); }