コード例 #1
0
ファイル: Status.cs プロジェクト: progrocket/Slipe-Core
        /// <summary>
        /// Update the status
        /// </summary>
        public void Update()
        {
            Dictionary <string, dynamic> t = MtaShared.GetDictionaryFromTable(MtaClient.DxGetStatus(), "System.String", "System.Dynamic");

            TestMode                          = (TestMode)Enum.Parse(typeof(TestMode), t["TestMode"]);
            VideoCardName                     = (string)t["VideoCardName"];
            VideoCardRAM                      = (int)t["VideoCardRAM"];
            VideoCardPSVersion                = (string)t["VideoCardPSVersion"];
            VideoCardNumRenderTargets         = (int)t["VideoCardNumRenderTargets"];
            VideoCardMaxAnisotropy            = (int)t["VideoCardMaxAnisotropy"];
            VideoMemoryFreeForMTA             = (int)t["VideoMemoryFreeForMTA"];
            VideoMemoryUsedByFonts            = (int)t["VideoMemoryUsedByFonts"];
            VideoMemoryUsedByTextures         = (int)t["VideoMemoryUsedByTextures"];
            VideoMemoryUsedByRenderTargets    = (int)t["VideoMemoryUsedByRenderTargets"];
            SettingWindowed                   = (bool)t["SettingWindowed"];
            SettingFullScreenStyle            = (int)t["SettingFullScreenStyle"];
            SettingFXQuality                  = (int)t["SettingFXQuality"];
            SettingDrawDistance               = (int)t["SettingDrawDistance"];
            SettingVolumetricShadows          = (bool)t["SettingVolumetricShadows"];
            SettingStreamingVideoMemoryForGTA = (int)t["SettingStreamingVideoMemoryForGTA"];
            SettingAnisotropicFiltering       = (int)t["SettingAnisotropicFiltering"];
            SettingAntiAliasing               = (int)t["SettingAntiAliasing"];
            SettingHeatHaze                   = (bool)t["SettingHeatHaze"];
            SettingGrassEffect                = (bool)t["SettingGrassEffect"];
            Setting32BitColor                 = (bool)t["Setting32BitColor"];
            SettingHUDMatchAspectRatio        = (bool)t["SettingHUDMatchAspectRatio"];
            SettingAspectRatio                = (string)t["SettingAspectRatio"];
            SettingFOV                        = (int)t["SettingFOV"];
            SettingHighDetailVehicles         = (bool)t["SettingHighDetailVehicles"];
            AllowScreenUpload                 = (bool)t["AllowScreenUpload"];
            DepthBufferFormat                 = (string)t["DepthBufferFormat"];
            UsingDepthBuffer                  = (bool)t["UsingDepthBuffer"];
        }