| 137 | } |
| 138 | |
| 139 | uint64_t SystemWorld::coordinateSeed(CelestialCoordinate const& coordinate, String const& seedMix) const { |
| 140 | auto satellite = coordinate.isSatelliteBody() ? coordinate.orbitNumber() : 0; |
| 141 | auto planet = coordinate.isSatelliteBody() ? coordinate.parent().orbitNumber() : (coordinate.isPlanetaryBody() && coordinate.orbitNumber()) || 0; |
| 142 | return staticRandomU64(coordinate.location()[0], coordinate.location()[1], coordinate.location()[2], planet, satellite, seedMix); |
| 143 | } |
| 144 | |
| 145 | float SystemWorld::planetOrbitDistance(CelestialCoordinate const& coordinate) const { |
| 146 | RandomSource random(coordinateSeed(coordinate, "PlanetOrbitDistance")); |
nothing calls this directly
no test coverage detected