Example #1
0
 public void SystemHighlighted(SystemInfo sInfo)
 {
     SNameText = sInfo.Name;
     SNumPlanetsText = sInfo.NumPlanets;
     SOwnerText = sInfo.Owner;
     ShowSystemsPopup = true;
     RaisePropertyChanged("ShowSystemsPopup");
 }
Example #2
0
        internal void SystemHighlighted(PlanetsSystem hoveredSystem)
        {
            bool isPlayerSystem = false;
            if(hoveredSystem.controllingPlayer != null)
            {
                isPlayerSystem = true;
            }

            SystemInfo info = new SystemInfo(hoveredSystem.ID, hoveredSystem.Planets.ToString(),
                hoveredSystem.controlledBy, isPlayerSystem);

            model.SystemHighlighted(info);
        }