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 = 2.0f; public const int DEFAULT_DEADZONE = 4500; public const float DEFAULT_PITCH_LIMIT = 88.25f; 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 float CameraPitchLimit { get; set; } } public struct Preset { public float FOV { get; set; } public float Forward { get; set; } public float Left { get; set; } public float Up { get; set; } public float 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 Presets { get; set; } = new Dictionary(); public String Selected { get; set; } = ""; } }