void ConnectStarSystems() { foreach (StarSystem origin in StarSystems) { StarSystemConnection systemConnection = origin.ConnectToClosest(StarSystems); if (systemConnection != null) { StarSystemConnections.Add(systemConnection); } } //connectBlindSystems(); }
void connectBlindSystems() { foreach (StarSystem blindSystem in StarSystems) { if (blindSystem.Connections.Count == 1) { StarSystemConnection systemConnection = blindSystem.ConnectToClosest(StarSystems); if (systemConnection != null) { StarSystemConnections.Add(systemConnection); } } } }