private void LoadEmpires() { foreach (string empirePaths in Directory.GetFiles(XMLUtility.userEmpireXMLPath)) { avalableEmpires.Add(XMLUtility.LoadUserXML <Empire>(empirePaths)); } }
public static Empire LoadXML(string empireName) { return(XMLUtility.LoadUserXML <Empire>(Path.Combine(XMLUtility.userGalaxyXMLPath, empireName))); }
public static UserSettings LoadUserSettings() { return(XMLUtility.LoadUserXML <UserSettings>(XMLUtility.userSettingsXMLPath)); }
public static Galaxy LoadXML(string galaxySettingsName) { return(XMLUtility.LoadUserXML <Galaxy>(Path.Combine(XMLUtility.userGalaxyXMLPath, galaxySettingsName))); }