private Charakter loadCharakter(String ResourceName, String SaveFileName) { Charakter charakter = new Charakter(); String path; path = Path.Combine(ManagmentSaveStrings.currentDirectory, ManagmentSaveStrings.Recources); path = Path.Combine(path, ResourceName); controllTalent = new ControllTalent(path); path = Path.Combine(path, ManagmentSaveStrings.SaveLocation); path = Path.Combine(path, SaveFileName); List <InterfaceTalent> list = new List <InterfaceTalent>(); list.AddRange(controllTalent.getTalentList <TalentClose>()); list.AddRange(controllTalent.getTalentList <TalentRange>()); list.AddRange(controllTalent.getTalentList <TalentWeaponless>()); list.AddRange(controllTalent.getTalentList <TalentCrafting>()); list.AddRange(controllTalent.getTalentList <TalentKnwoldage>()); list.AddRange(controllTalent.getTalentList <TalentNature>()); list.AddRange(controllTalent.getTalentList <TalentPhysical>()); list.AddRange(controllTalent.getTalentList <TalentSocial>()); list.AddRange(controllTalent.getTalentList <LanguageTalent>()); list.AddRange(controllTalent.getTalentList <FontTalent>()); charakter.addTalent(list); charakter = LoadCharakterXML.loadCharakter(path, charakter, this.controllTalent); return(charakter); }
public void setUP_Abstract_LoadCharakterXMLTest() { Console.WriteLine("setUP_Abstract_LoadCharakterXMLTest"); setUP_Controller(); String path; path = Path.Combine(ManagmentSaveStrings.currentDirectory, ManagmentSaveStrings.Recources); path = Path.Combine(path, getResourceName()); path = Path.Combine(path, ManagmentSaveStrings.SaveLocation); path = Path.Combine(path, getLoadFileName()); if (getSaveFirst() == true) { String file = ResourceAcess.getSaveFile(getResourceName(), getSaveFileName()); SaveCharakterXML.saveCharakter(charakter, file); } charakter = LoadCharakterXML.loadCharakter(path, charakter, this.controllTalent); }