-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathNavRouteInfoItem.cs
More file actions
56 lines (45 loc) · 1.8 KB
/
NavRouteInfoItem.cs
File metadata and controls
56 lines (45 loc) · 1.8 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using JetBrains.Annotations;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace EddiDataDefinitions
{
public class NavRouteInfoItem
{
[PublicAPI("The name of the star system"), JsonProperty("StarSystem")]
public string systemname { get; set; }
[JsonIgnore, Obsolete("Please use systemname instead.")]
public string name => systemname;
[PublicAPI("The numeric system address of the star system"), JsonProperty( "SystemAddress")]
public ulong systemAddress { get; set; }
[JsonProperty( "StarPos")]
private List<decimal> starPos { get; set; }
[PublicAPI ("The stellar class of the primary star"), JsonProperty( "StarClass")]
public string stellarclass { get; set; }
[PublicAPI("The X coordinate of the star system")]
public decimal x => starPos[0];
[PublicAPI( "The Y coordinate of the star system" )]
public decimal y => starPos[1];
[PublicAPI( "The Z coordinate of the star system" )]
public decimal z => starPos[2];
// Default Constructor
public NavRouteInfoItem()
{ }
// Copy Constructor
public NavRouteInfoItem(NavRouteInfoItem navWaypoint)
{
this.systemname = navWaypoint.systemname;
this.systemAddress = navWaypoint.systemAddress;
this.starPos = navWaypoint.starPos;
this.stellarclass = navWaypoint.stellarclass;
}
// Main Constructor
public NavRouteInfoItem(string systemname, ulong SystemAddress, List<decimal> StarPos, string stellarclass)
{
this.systemname = systemname;
this.systemAddress = SystemAddress;
this.starPos = StarPos;
this.stellarclass = stellarclass;
}
}
}