forked from ToadsworthLP/desktoptale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettings.cs
36 lines (27 loc) · 1.33 KB
/
Settings.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
using CommandLine;
namespace Desktoptale
{
public class Settings
{
[Value(0)]
public string Preset { get; set; }
[Option("character", HelpText = "Registry key of the character to use", Default = null)]
public string Character { get; set; }
[Option("scale", HelpText = "Scale of the character (must be greater than 1)", Default = 2)]
public int Scale { get; set; } = 2;
[Option("idle-roaming", HelpText = "Whether to enable the Idle Roaming option", Default = true)]
public bool IdleRoaming { get; set; } = true;
[Option("unfocused-input", HelpText = "Whether to enable the Unfocused Input option", Default = false)]
public bool UnfocusedInput { get; set; }
[Option("window", HelpText = "The window the character should stay in", Default = null)]
public string Window { get; set; }
[Option("party", HelpText = "The party that the character should join", Default = null)]
public string Party { get; set; }
[Option("print-registry-keys", HelpText = "Lists the registry keys of all currently available characters", Default = false)]
public bool PrintRegistryKeys { get; set; }
public void Validate()
{
if (Scale < 1) Scale = 1;
}
}
}