Load() публичный Метод

public Load ( System.Xml.Linq.XElement empireDoc, Empire empire, GameMain gameMain ) : void
empireDoc System.Xml.Linq.XElement
empire Empire
gameMain GameMain
Результат void
Пример #1
0
 public void Load(XElement empireToLoad, GameMain gameMain)
 {
     empireID           = int.Parse(empireToLoad.Attribute("ID").Value);
     empireName         = empireToLoad.Attribute("Name").Value;
     EmpireColor        = Color.FromArgb(int.Parse(empireToLoad.Attribute("Color").Value));
     EmpireRace         = gameMain.RaceManager.GetRace(empireToLoad.Attribute("Race").Value);
     type               = bool.Parse(empireToLoad.Attribute("IsHumanPlayer").Value) ? PlayerType.HUMAN : PlayerType.CPU;
     lastSelectedSystem = gameMain.Galaxy.GetStarWithID(int.Parse(empireToLoad.Attribute("SelectedSystem").Value));
     TechnologyManager.Load(empireToLoad, gameMain.MasterTechnologyManager);
     FleetManager.Load(empireToLoad, this, gameMain);
 }