private void getPositions() { List <Position> positions = Ephemeris.Geocentric[During.ReferenceTime]; StarPositions.Clear(); foreach (PlanetId id in Planet.All.Keys) { foreach (Position pos in positions) { if (pos.Owner.Id != id) { continue; } StarPositions.Add(id, pos); break; } if (!StarPositions.ContainsKey(id)) { StarPositions.Add(id, Ephemeris.Geocentric[During.ReferenceTime, id]); } } }