Пример #1
0
 void ConnectStarSystems()
 {
     foreach (StarSystem origin in StarSystems)
     {
         StarSystemConnection systemConnection = origin.ConnectToClosest(StarSystems);
         if (systemConnection != null)
         {
             StarSystemConnections.Add(systemConnection);
         }
     }
     //connectBlindSystems();
 }
Пример #2
0
 void connectBlindSystems()
 {
     foreach (StarSystem blindSystem in StarSystems)
     {
         if (blindSystem.Connections.Count == 1)
         {
             StarSystemConnection systemConnection = blindSystem.ConnectToClosest(StarSystems);
             if (systemConnection != null)
             {
                 StarSystemConnections.Add(systemConnection);
             }
         }
     }
 }