convert planetid to celestial id
@@ -8,3 +8,8 @@ type PlanetID CelestialID
func (p PlanetID) String() string {
return strconv.Itoa(int(p))
}
+
+// Celestial convert a PlanetID to a CelestialID
+func (p PlanetID) Celestial() CelestialID {
+ return CelestialID(p)
+}
