forked from isxGames/ISXEVEWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DirectionalScanner.cs
39 lines (35 loc) · 1.42 KB
/
DirectionalScanner.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
using System.Collections.Generic;
using System.Globalization;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
/// <summary>
/// Wrapper for the directionalscanner datatype
/// </summary>
public class DirectionalScanner : LavishScriptObject
{
public DirectionalScanner(LavishScriptObject Copy) : base(Copy)
{
}
/// <summary>
/// Start a directional scan at the given angle and range.
/// </summary>
/// <param name="angle">Angle of the scan. Default is 360.</param>
/// <param name="range">Range of the scan. Default is 2147483647.</param>
/// <returns></returns>
public bool StartScan(int angle, int range)
{
return ExecuteMethod("StartScan", angle.ToString(CultureInfo.CurrentCulture), range.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Get the results of the last started scan with the given angle and range. Default is the same as StartScan.
/// </summary>
/// <param name="angle"></param>
/// <param name="range"></param>
/// <returns></returns>
public List<DirectionalScannerResult> GetScanResults(int angle, int range)
{
return this.GetListFromMethod<DirectionalScannerResult>("GetScanResults", "DirectionalScannerresult", angle.ToString(CultureInfo.CurrentCulture), range.ToString(CultureInfo.CurrentCulture));
}
}
}