예제 #1
0
파일: MapManager.cs 프로젝트: XDKlein/forth
 void ConnectStarSystems()
 {
     foreach (StarSystem origin in StarSystems)
     {
         StarSystemConnection systemConnection = origin.ConnectToClosest(StarSystems);
         if (systemConnection != null)
         {
             StarSystemConnections.Add(systemConnection);
         }
     }
     //connectBlindSystems();
 }
예제 #2
0
파일: MapManager.cs 프로젝트: XDKlein/forth
 void connectBlindSystems()
 {
     foreach (StarSystem blindSystem in StarSystems)
     {
         if (blindSystem.Connections.Count == 1)
         {
             StarSystemConnection systemConnection = blindSystem.ConnectToClosest(StarSystems);
             if (systemConnection != null)
             {
                 StarSystemConnections.Add(systemConnection);
             }
         }
     }
 }