예제 #1
0
        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;
        }
예제 #2
0
 public void UpdatePlayerPanelInfo(PlayerInfo info)
 {
     model.UpdatePlayerInfo(info.Name, info.Systems, info.Planets);
 }