public static string StarTypeNameShorter(EDStar type) { if (StarEnumToNameLookup.TryGetValue(type, out var name)) { return(name); } else { return(type.ToString().Replace("_", " ")); } }
public static string StarName(EDStar id) { switch (id) // see journal, section 11.2 { case EDStar.O: return(string.Format("Luminous Hot Main Sequence {0} star".T(EDTx.Bodies_HMS), id.ToString())); case EDStar.B: // also have an B1V return(string.Format("Luminous Blue Main Sequence {0} star".T(EDTx.Bodies_BMS), id.ToString())); case EDStar.A: // also have an A3V.. return(string.Format("Bluish-White Main Sequence {0} star".T(EDTx.Bodies_BWMS), id.ToString())); case EDStar.F: return(string.Format("White Main Sequence {0} star".T(EDTx.Bodies_WMS), id.ToString())); case EDStar.G: // also have a G8V return(string.Format("Yellow Main Sequence {0} star".T(EDTx.Bodies_YMS), id.ToString())); case EDStar.K: // also have a K0V return(string.Format("Orange Main Sequence {0} star".T(EDTx.Bodies_OMS), id.ToString())); case EDStar.M: // also have a M1VA return(string.Format("Red Main Sequence {0} star".T(EDTx.Bodies_RMS), id.ToString())); // dwarfs case EDStar.L: return(string.Format("Dark Red Non Main Sequence {0} star".T(EDTx.Bodies_DRNS), id.ToString())); case EDStar.T: return(string.Format("Methane Dwarf star".T(EDTx.Bodies_MD))); case EDStar.Y: return(string.Format("Brown Dwarf star".T(EDTx.Bodies_BD))); // proto stars case EDStar.AeBe: // Herbig return("Herbig Ae/Be"); case EDStar.TTS: // seen in logs return("T Tauri"); // wolf rayet case EDStar.W: case EDStar.WN: case EDStar.WNC: case EDStar.WC: case EDStar.WO: return(string.Format("Wolf-Rayet {0} star".T(EDTx.Bodies_WR), id.ToString())); // Carbon case EDStar.CS: case EDStar.C: case EDStar.CN: case EDStar.CJ: case EDStar.CHd: return(string.Format("Carbon {0} star".T(EDTx.Bodies_C), id.ToString())); case EDStar.MS: //seen in log https://en.wikipedia.org/wiki/S-type_star return(string.Format("Intermediate low Zirconium Monoxide Type star".T(EDTx.Bodies_IZ))); case EDStar.S: // seen in log, data from http://elite-dangerous.wikia.com/wiki/Stars return(string.Format("Cool Giant Zirconium Monoxide rich Type star".T(EDTx.Bodies_CGZ))); // white dwarf case EDStar.D: case EDStar.DA: case EDStar.DAB: case EDStar.DAO: case EDStar.DAZ: case EDStar.DAV: case EDStar.DB: case EDStar.DBZ: case EDStar.DBV: case EDStar.DO: case EDStar.DOV: case EDStar.DQ: case EDStar.DC: case EDStar.DCV: case EDStar.DX: return(string.Format("White Dwarf {0} star".T(EDTx.Bodies_WD), id.ToString())); case EDStar.N: return("Neutron Star".T(EDTx.Bodies_NS)); case EDStar.H: return("Black Hole".T(EDTx.Bodies_BH)); case EDStar.X: // currently speculative, not confirmed with actual data... in journal return("Exotic".T(EDTx.Bodies_EX)); // Journal.. really? need evidence these actually are formatted like this. case EDStar.SuperMassiveBlackHole: return("Super Massive Black Hole".T(EDTx.Bodies_SMBH)); case EDStar.A_BlueWhiteSuperGiant: return("Blue White Super Giant".T(EDTx.Bodies_BSG)); case EDStar.F_WhiteSuperGiant: return("F White Super Giant".T(EDTx.Bodies_WSG)); case EDStar.M_RedSuperGiant: return("M Red Super Giant".T(EDTx.Bodies_MSR)); case EDStar.M_RedGiant: return("M Red Giant".T(EDTx.Bodies_MOG)); case EDStar.K_OrangeGiant: return("K Orange Giant".T(EDTx.Bodies_KOG)); case EDStar.RoguePlanet: return("Rogue Planet".T(EDTx.Bodies_RP)); default: return(string.Format("Class {0} star\n", id.ToString())); } }