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