-
Notifications
You must be signed in to change notification settings - Fork 14
/
CharSelect.cs
74 lines (68 loc) · 1.87 KB
/
CharSelect.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
using System;
using System.Collections.Generic;
using System.Text;
using System.Globalization;
using EVE.ISXEVE.Extensions;
using InnerSpaceAPI;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
/// <summary>
/// Allows manipulation of Character Select screen.
/// </summary>
public class CharSelect : LavishScriptObject
{
#region Constructors
/// <summary>
/// CharSelect copy constructor.
/// </summary>
/// <param name="Obj"></param>
public CharSelect(LavishScriptObject Obj)
: base(Obj)
{
}
/// <summary>
/// Check with LavishScriptObject.IsNullOrInvalid. If its not valid,
/// you're not at the char select screen.
/// </summary>
public CharSelect()
: base(LavishScript.Objects.GetObject("CharSelect"))
{
}
#endregion
#region Members
/// <summary>
/// True if the given character exists on the charselect screen
/// </summary>
public bool CharExists(Int64 ID)
{
return this.GetBool("CharExists", ID.ToString(CultureInfo.CurrentCulture));
}
public bool CharExists(string name)
{
return this.GetBool("CharExists", name);
}
#endregion
#region Methods
/// <summary>
/// Wrapper for ClickCharacter method of charselect type.
/// </summary>
/// <returns></returns>
public bool ClickCharacter(string name)
{
Tracing.SendCallback("CharSelect.ClickCharacter", name);
return ExecuteMethod("ClickCharacter", name);
}
/// <summary>
/// Wrapper for ClickCharacter method of charselect type.
/// </summary>
/// <param name="CharID"></param>
/// <returns></returns>
public bool ClickCharacter(int CharID)
{
Tracing.SendCallback("CharSelect.ClickCharacter", CharID.ToString(CultureInfo.CurrentCulture));
return ExecuteMethod("ClickCharacter", CharID.ToString(CultureInfo.CurrentCulture));
}
#endregion
}
}