internal PlayerInfo GetPlayerInfo() { PlayerInfo info = new PlayerInfo(); info.Name = HumanPlayer.Name; info.Planets = new List<string>(); info.Systems = new List<string>(); foreach (PlanetsSystem s in HumanPlayer.OwnedSystems) { info.Systems.Add(s.ID); } List<string> planList = new List<string>(); foreach (Planet p in HumanPlayer.OwnedPlanets) { info.Planets.Add(p.PlanetName); } return info; }
public void UpdatePlayerPanelInfo(PlayerInfo info) { model.UpdatePlayerInfo(info.Name, info.Systems, info.Planets); }