summaryrefslogtreecommitdiff
path: root/Config.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Config.cs')
-rwxr-xr-xConfig.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/Config.cs b/Config.cs
index 1da81b5..cf99339 100755
--- a/Config.cs
+++ b/Config.cs
@@ -10,6 +10,9 @@ namespace NewCamera
public String Name => "NewCamera";
public String Version => "4.0";
+ public const float DEFAULT_FOV = 60.0f;
+ public const float DEFAULT_NEAR_CLIP = 16.0f;
+
public struct Settings
{
public const float DEFAULT_SPEED = 5.35f;
@@ -70,23 +73,33 @@ namespace NewCamera
public struct Preset
{
public float FieldOfView { get; set; }
+ public float Roll { get; set; }
public float Forward { get; set; }
public float Right { get; set; }
public float Up { get; set; }
- public float Roll { get; set; }
public bool DisableFading { get; set; }
}
+ public static Preset DefaultPreset = new Preset()
+ {
+ FieldOfView = DEFAULT_FOV,
+ Roll = 0.0f,
+ Forward = 0.0f,
+ Right = 0.0f,
+ Up = 0.0f,
+ DisableFading = false
+ };
+
public struct Position
{
public float FieldOfView { get; set; }
+ public float Roll { get; set; }
public float PosX { get; set; }
public float PosY { get; set; }
public float PosZ { get; set; }
public float TargetX { get; set; }
public float TargetY { get; set; }
public float TargetZ { get; set; }
- public float Roll { get; set; }
}
private static Dictionary<string, Button> buttonMap = new Dictionary<string, Button>