-
Notifications
You must be signed in to change notification settings - Fork 0
/
Options.cs
49 lines (40 loc) · 1.42 KB
/
Options.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
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Newtonsoft.Json;
namespace Limestone
{
[JsonObject(MemberSerialization.OptIn)]
public class Options
{
internal bool DEBUGDRAWCAMERACLAMP = false;
internal bool DEBUGDRAWENEMYHITBOXES = false;
internal bool DEBUGDRAWPROJECTILEHITBOXES = false;
internal bool DEBUGDRAWPROJECTILEVELVECTOR = false;
internal bool DEBUGDRAWCOLLECTABLEHITBOXES = false;
internal bool DEBUGDRAWNPCHITBOXES = false;
internal bool DEBUGDRAWNPCINTERACTIONRADIUS = false;
[JsonProperty]
public Keys KEYMOVEUP = Keys.W;
public readonly Keys KEYMOVEUPDEFAULT = Keys.W;
[JsonProperty]
public Keys KEYMOVERIGHT = Keys.D;
public readonly Keys KEYMOVERIGHTDEFAULT = Keys.D;
[JsonProperty]
public Keys KEYMOVEDOWN = Keys.S;
public readonly Keys KEYMOVEDOWNDEFAULT = Keys.S;
[JsonProperty]
public Keys KEYMOVELEFT = Keys.A;
public readonly Keys KEYMOVELEFTDEFAULT = Keys.A;
public Options()
{ //dummy ctor for json.net
}
public void ResetToDefaults()
{
KEYMOVEUP = KEYMOVEUPDEFAULT;
KEYMOVELEFT = KEYMOVELEFTDEFAULT;
KEYMOVERIGHT = KEYMOVERIGHTDEFAULT;
KEYMOVEDOWN = KEYMOVEDOWNDEFAULT;
}
}
}