-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathBodyType.cs
More file actions
30 lines (27 loc) · 1.26 KB
/
BodyType.cs
File metadata and controls
30 lines (27 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace EddiDataDefinitions
{
public class BodyType : ResourceBasedLocalizedEDName<BodyType>
{
static BodyType()
{
resourceManager = Properties.Body.ResourceManager;
resourceManager.IgnoreCase = true;
missingEDNameHandler = (edname) => new BodyType(edname);
}
public static readonly BodyType None = new("None");
public static readonly BodyType Barycenter = new("Null"); // The journal includes references to a "Null" string when we are near a barycenter
public static readonly BodyType Belt = new("Belt");
public static readonly BodyType HyperbolicOrbiter = new("HyperbolicOrbiter");
public static readonly BodyType Moon = new("Moon");
public static readonly BodyType Planet = new("Planet");
public static readonly BodyType PlanetaryRing = new("PlanetaryRing");
public static readonly BodyType Star = new("Star");
public static readonly BodyType Station = new("Station");
public static readonly BodyType StellarRing = new("StellarRing");
// dummy used to ensure that the static constructor has run
public BodyType() : this("")
{ }
private BodyType(string edname) : base(edname, edname)
{ }
}
}