Beyond_Beyaan.Empire.CheckExploredSystems C# (CSharp) Метод

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

public CheckExploredSystems ( Galaxy galaxy ) : List
galaxy Galaxy
Результат List
        public List<StarSystem> CheckExploredSystems(Galaxy galaxy)
        {
            List<StarSystem> exploredSystems = new List<StarSystem>();
            foreach (Fleet fleet in FleetManager.GetFleets())
            {
                if (fleet.TravelNodes == null || fleet.TravelNodes.Count == 0)
                {
                    StarSystem systemExplored = fleet.AdjacentSystem;
                    if (systemExplored != null && !systemExplored.IsThisSystemExploredByEmpire(this))
                    {
                        SitRepManager.AddItem(new SitRepItem(Screen.Galaxy, systemExplored, null, new Point(systemExplored.X, systemExplored.Y), systemExplored.Name + " has been explored."));
                        systemExplored.AddEmpireExplored(this);
                        exploredSystems.Add(systemExplored);
                    }
                }
            }
            return exploredSystems;
        }