summaryrefslogtreecommitdiff
path: root/Config.cs
blob: 59eb76a3377510a05979087e1f088ed51ef8e16c (plain)
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
using SharpPluginLoader.Core.Configuration;
using SharpPluginLoader.Core.IO;

namespace MHWNewCamera
{
    internal class Config : IConfig
    {
        public struct Binds
        {
            public Binds()
            {
            }
        }

        public struct Settings
        {
            public const float DEFAULT_SPEED = 3.00f;
            public const float DEFAULT_ZOOM_SPEED = 1.0f;
            public const float DEFAULT_SPEED_MODIFIER = 0.25f;
            public const float DEFAULT_SENSITIVITY = 1.95f;
            public const int DEFAULT_DEADZONE = 4750;
            public const double DEFAULT_PITCH_LIMIT = 88.25;

            public Settings()
            {
                CameraSpeed = DEFAULT_SPEED;
                CameraZoomSpeed = DEFAULT_ZOOM_SPEED;
                CameraSpeedModifier = DEFAULT_SPEED_MODIFIER;
                CameraSensitivity = DEFAULT_SENSITIVITY;
                StickDeadzone = DEFAULT_DEADZONE;
                CameraPitchLimit = DEFAULT_PITCH_LIMIT;
            }

            public float CameraSpeed { get; set; }
            public float CameraZoomSpeed { get; set; }
            public float CameraSpeedModifier { get; set; }
            public float CameraSensitivity { get; set; }
            public int StickDeadzone { get; set; }
            public double CameraPitchLimit { get; set; }
        }

        public struct Preset
        {
            public double FOV { get; set; }
            public float Forward { get; set; }
            public float Left { get; set; }
            public float Up { get; set; }
            public double Roll { get; set; }
        }

        public String Name => "MHWNewCamera";
        public String Version => "1.1";

        public Settings CameraSettings { get; set; } = new Settings();
        public bool PerspectiveCameraEnabled { get; set; } = false;
        public Dictionary<String, Preset> Presets { get; set; } = new Dictionary<String, Preset>();
        public String Selected { get; set; } = "";
    }
}