-
Notifications
You must be signed in to change notification settings - Fork 0
/
SolarSystem.cs
85 lines (74 loc) · 2.06 KB
/
SolarSystem.cs
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using EVE.ISXEVE.Extensions;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
public class SolarSystem : Interstellar
{
public SolarSystem(LavishScriptObject copy) : base(copy)
{
}
private Region _region;
public Region Region
{
get { return _region ?? (_region = new Region(GetMember("Region"))); }
}
private Constellation _constellation;
public Constellation Constellation
{
get
{
return _constellation ?? (_constellation = new Constellation(GetMember("Constellation")));
}
}
private float? _security;
public float Security
{
get
{
if (_security == null)
_security = this.GetFloat("Security");
return _security.Value;
}
}
private int? _factionId;
public int FactionID
{
get
{
if (_factionId == null)
_factionId = this.GetInt("FactionID");
return _factionId.Value;
}
}
private string _faction;
public string Faction
{
get { return _faction ?? (_faction = this.GetString("Faction")); }
}
private int? _jumpsTo;
public int JumpsTo
{
get
{
if (_jumpsTo == null)
_jumpsTo = this.GetInt("JumpsTo");
return _jumpsTo.Value;
}
}
public bool AddWaypoint()
{
Tracing.SendCallback("Interstellar.AddWaypoint");
return ExecuteMethod("AddWaypoint");
}
public bool ClearWaypoint()
{
Tracing.SendCallback("Interstellar.ClearWaypoint");
return ExecuteMethod("ClearWaypoint");
}
public bool SetDestination()
{
Tracing.SendCallback("Interstellar.SetDestination");
return ExecuteMethod("SetDestination");
}
}
}