forked from isxGames/ISXEVEWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUniverse.cs
More file actions
30 lines (27 loc) · 747 Bytes
/
Universe.cs
File metadata and controls
30 lines (27 loc) · 747 Bytes
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
using System.Globalization;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
/// <summary>
/// Wrapper for the universe data type.
/// </summary>
public class Universe
{
#region Statics
/// <summary>
/// can refer to any solarsystem, region, or constellation
/// </summary>
public static SolarSystem ByName(string name)
{
return new SolarSystem(LavishScript.Objects.GetObject("Universe", name));
}
/// <summary>
/// can refer to any solarsystem, region, or constellation
/// </summary>
public static SolarSystem ByID(int ID)
{
return new SolarSystem(LavishScript.Objects.GetObject("Universe", ID.ToString(CultureInfo.CurrentCulture)));
}
#endregion
}
}