public FogColorInterpolationScript()
 {
     StartValue = EndValue = new Graphics.Renderer.Settings().FogColor;
 }
        public Settings()
        {
            WindowMode     = Graphics.WindowMode.FullscreenWindowed;
            WindowState    = System.Windows.Forms.FormWindowState.Maximized;
            WindowSize     = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size;
            FullscreenSize = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size;

            GraphicsDeviceSettings = new Graphics.GraphicsDevice.Settings()
            {
                Resolution = new Graphics.GraphicsDevice.Resolution()
                {
                    Width  = WindowSize.Width,
                    Height = WindowSize.Height
                },
                VSync = Graphics.GraphicsDevice.VerticalSyncMode.Off
            };

            RendererSettings = new Graphics.Renderer.Settings
            {
                CullSceneInterval = 0.1f,
            };

            SoundSettings  = new Client.Sound.Settings();
            MotionSettings = new Common.Motion.Settings
            {
                AllowMotionObjectGetCalls = false
            };
            HelperVisualizationsSettings = new Client.Game.HelperVisualizationsSettings();
            CameraSphericalCoordinates   = Common.Math.CartesianToSphericalCoordinates(new Vector3(18, 0, 18));
            CameraSphericalCoordinates   = new Vector3(CameraSphericalCoordinates.X, CameraSphericalCoordinates.Y,
                                                       (float)Math.PI / 4f);
            //CameraZFar = 45 - CameraSphericalCoordinates.X;
            OffsetCameraZFar = 0;
            CameraZNear      = 1;
            CameraFOV        = 0.5f;

            VisualizeShadowMap        = false;
            HideGroundMotionBoundings = false;
            RenderWorld                = true;
            RendererUseQuadtree        = true;
            VisualizeRendererQuadtree  = false;
            UseCPUPerformanceCounter   = false;
            AIInRangeGridSize          = 4;
            UseDummyRenderer           = false;
            DisplayUnitsHUDStats       = HudStats.None;
            DisplayAttackRangeCircles  = false;
            DisplayHitRangeCircles     = false;
            DisplaySettingsForm        = false;
            OutputActionStartEnd       = false;
            DisplayInterfaceClickables = false;
            DisplayInputHierarchy      = false;
            DisplayActiveActions       = false;
            DisplayInCombatUnits       = false;
            HPBarStyle                 = HPBarStyle.Interface;
            DisplayCooldownBars        = false;
            SpeedMultiplier            = 1;
            DisplayScrollingCombatText = true;
            HideStats               = false;
            HidePropsAndGround      = false;
            DisplayInterface        = true;
            DisplayWorldCursor      = true;
            DisplayWorldDebugCursor = false;
#if DEBUG
            GodMode   = false;
            PowerMode = false;
#endif
            VampiricMode            = false;
            AllowCameraRotation     = false;
            CanSelectCheckpoint     = false;
            OutputPNGSequence       = false;
            FixedFrameStep          = false;
            FixedFrameStepDTime     = 1f / 30f;
            DisplayConsole          = false;
            DeveloperMainMenu       = false;
            NearestNeighborsEnabled = true;
            DisplayAchievements     = true;
            ChallengeMapMode        = false;
#if DEBUG
            UseAppDataWorkingDirectory = false;
#else
            UseAppDataWorkingDirectory = true;
#endif
            CanGainRageLevel              = true;
            DisplayProfilers              = ProfilersDisplayMode.None;
            DisplayProfilersSystem        = ProfilersSystem.Client;
            DisplayRendererStatus         = false;
            ProfilersFramesInterval       = 60;
            AchievementsEnabled           = true;
            SilverEnabled                 = true;
            MainCharPositionInterpolation = UnitInterpolationMode.HalfStep;
            HallOfFameAddress             = "http://deadmeetslead.com/hall-of-fame";
            ChallengeSurveyLink           = "http://deadmeetslead.com/challenge-survey";
            NewsUrl               = "http://deadmeetslead.com/ingame-news";
            MoreNewsUrl           = "http://deadmeetslead.com/ingame-more-news";
            SupportUrl            = "http://www.deadmeetslead.com/support";
            ApplicationDataFolder = "DeadMeetsLead";
            ActiveLanguage        = Language.Default;
#if DEBUG
            DisplayFPS = true;
#else
            DisplayFPS = false;
#endif
            ProfileClickOnceWin            = false;
            DisplayMapNamesInDeveloperMenu = true;
            DisplayDPS                   = false;
            DisplayHelpPopups            = true;
            DisplayFeedbackOnlineControl = false;
            CheckForUpdate               = true;
#if BETA_RELEASE && !DEBUG
            SendProgramCrashFeedback = true;
            SendStatisticsFeedback   = true;
#else
            SendProgramCrashFeedback = false;
            SendStatisticsFeedback   = false;
#endif
#if BETA_RELEASE && !DEBUG
            DisplayMapRatingDialog = MapRatingDialogSetup.Required;
#else
            DisplayMapRatingDialog = MapRatingDialogSetup.Optional;
#endif

#if DEBUG
            ProfileType = FeedbackCommon.ProfileType.Developer;
#elif BETA_RELEASE
            ProfileType = FeedbackCommon.ProfileType.BetaTesterUnknown;
#else
            ProfileType = FeedbackCommon.ProfileType.Normal;
#endif

            DownloadHost = "http://download2.deadmeetslead.com/";

            VersionFile = "";
            DownloadKey = "";
            //VersionFile = "latestdmlbetachallenge.txt";
            //DownloadKey = "dmlbetachallenge";
            //VersionFile = "latestdmlbeta.txt";
            //DownloadKey = "dmlbeta";
        }
 public SetRendererSettingsScript()
 {
     Settings = new Graphics.Renderer.Settings();
 }
        public Settings()
        {
            WindowMode = Graphics.WindowMode.FullscreenWindowed;
            WindowState = System.Windows.Forms.FormWindowState.Maximized;
            WindowSize = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size;
            FullscreenSize = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size;

            GraphicsDeviceSettings = new Graphics.GraphicsDevice.Settings()
            {
                Resolution = new Graphics.GraphicsDevice.Resolution()
                {
                    Width = WindowSize.Width,
                    Height = WindowSize.Height
                },
                VSync = Graphics.GraphicsDevice.VerticalSyncMode.Off
            };

            RendererSettings = new Graphics.Renderer.Settings
            {
                CullSceneInterval = 0.1f,
            };

            SoundSettings = new Client.Sound.Settings();
            MotionSettings = new Common.Motion.Settings
            {
                AllowMotionObjectGetCalls = false
            };
            HelperVisualizationsSettings = new Client.Game.HelperVisualizationsSettings();
            CameraSphericalCoordinates = Common.Math.CartesianToSphericalCoordinates(new Vector3(18, 0, 18));
            CameraSphericalCoordinates = new Vector3(CameraSphericalCoordinates.X, CameraSphericalCoordinates.Y,
                (float)Math.PI / 4f);
            //CameraZFar = 45 - CameraSphericalCoordinates.X;
            OffsetCameraZFar = 0;
            CameraZNear = 1;
            CameraFOV = 0.5f;

            VisualizeShadowMap = false;
            HideGroundMotionBoundings = false;
            RenderWorld = true;
            RendererUseQuadtree = true;
            VisualizeRendererQuadtree = false;
            UseCPUPerformanceCounter = false;
            AIInRangeGridSize = 4;
            UseDummyRenderer = false;
            DisplayUnitsHUDStats = HudStats.None;
            DisplayAttackRangeCircles = false;
            DisplayHitRangeCircles = false;
            DisplaySettingsForm = false;
            OutputActionStartEnd = false;
            DisplayInterfaceClickables = false;
            DisplayInputHierarchy = false;
            DisplayActiveActions = false;
            DisplayInCombatUnits = false;
            HPBarStyle = HPBarStyle.Interface;
            DisplayCooldownBars = false;
            SpeedMultiplier = 1;
            DisplayScrollingCombatText = true;
            HideStats = false;
            HidePropsAndGround = false;
            DisplayInterface = true;
            DisplayWorldCursor = true;
            DisplayWorldDebugCursor = false;
            #if DEBUG
            GodMode = false;
            PowerMode = false;
            #endif
            VampiricMode = false;
            AllowCameraRotation = false;
            CanSelectCheckpoint = false;
            OutputPNGSequence = false;
            FixedFrameStep = false;
            FixedFrameStepDTime = 1f / 30f;
            DisplayConsole = false;
            DeveloperMainMenu = false;
            NearestNeighborsEnabled = true;
            DisplayAchievements = true;
            ChallengeMapMode = false;
            #if DEBUG
            UseAppDataWorkingDirectory = false;
            #else
            UseAppDataWorkingDirectory = true;
            #endif
            CanGainRageLevel = true;
            DisplayProfilers = ProfilersDisplayMode.None;
            DisplayProfilersSystem = ProfilersSystem.Client;
            DisplayRendererStatus = false;
            ProfilersFramesInterval = 60;
            AchievementsEnabled = true;
            SilverEnabled = true;
            MainCharPositionInterpolation = UnitInterpolationMode.HalfStep;
            HallOfFameAddress = "http://deadmeetslead.com/hall-of-fame";
            ChallengeSurveyLink = "http://deadmeetslead.com/challenge-survey";
            NewsUrl = "http://deadmeetslead.com/ingame-news";
            MoreNewsUrl = "http://deadmeetslead.com/ingame-more-news";
            SupportUrl = "http://www.deadmeetslead.com/support";
            ApplicationDataFolder = "DeadMeetsLead";
            ActiveLanguage = Language.Default;
            #if DEBUG
            DisplayFPS = true;
            #else
            DisplayFPS = false;
            #endif
            ProfileClickOnceWin = false;
            DisplayMapNamesInDeveloperMenu = true;
            DisplayDPS = false;
            DisplayHelpPopups = true;
            DisplayFeedbackOnlineControl = false;
            CheckForUpdate = true;
            #if BETA_RELEASE && !DEBUG
            SendProgramCrashFeedback = true;
            SendStatisticsFeedback = true;
            #else
            SendProgramCrashFeedback = false;
            SendStatisticsFeedback = false;
            #endif
            #if BETA_RELEASE && !DEBUG
            DisplayMapRatingDialog = MapRatingDialogSetup.Required;
            #else
            DisplayMapRatingDialog = MapRatingDialogSetup.Optional;
            #endif

            #if DEBUG
            ProfileType = FeedbackCommon.ProfileType.Developer;
            #elif BETA_RELEASE
            ProfileType = FeedbackCommon.ProfileType.BetaTesterUnknown;
            #else
            ProfileType = FeedbackCommon.ProfileType.Normal;
            #endif

            DownloadHost = "http://download2.deadmeetslead.com/";

            VersionFile = "";
            DownloadKey = "";
            //VersionFile = "latestdmlbetachallenge.txt";
            //DownloadKey = "dmlbetachallenge";
            //VersionFile = "latestdmlbeta.txt";
            //DownloadKey = "dmlbeta";
        }