コード例 #1
0
ファイル: Config.cs プロジェクト: kimhwi9202/crown_temp
            //public static string deviceUniqueIdentifier { get; set; }
            //public static int graphicsDeviceID { get; set; }

            /*
             * public static string graphicsDeviceName { get; set; }
             * public static string graphicsDeviceType { get; set; }
             * public static string graphicsDeviceVersion { get; set; }
             * public static int graphicsMemorySize { get; set; }
             * public static int maxTextureSize { get; set; }
             * public static int systemMemorySize { get; set; }
             * public static string operatingSystem { get; set; }
             * public static string operatingSystemFamily { get; set; }
             * public static int processorCount { get; set; }
             * public static int processorFrequency { get; set; }
             * public static string processorType { get; set; }
             */
            public STSystemInfo()
            {
                configVer   = GetCurrentConfigVersion().GetVersion();
                clientVer   = GetBuildVersion();
                platform    = CurrentPlatform.ToString();
                server      = GetCurrentConfigServerIP() + ":" + GetCurrentConfigServerPORT().ToString();
                deviceModel = SystemInfo.deviceModel;
                deviceName  = SystemInfo.deviceName;
                deviceType  = SystemInfo.deviceType.ToString();
                //deviceUniqueIdentifier = SystemInfo.deviceUniqueIdentifier;
                //graphicsDeviceID = SystemInfo.graphicsDeviceID;

                /*
                 * graphicsDeviceName = SystemInfo.graphicsDeviceName;
                 * graphicsDeviceType = SystemInfo.graphicsDeviceType.ToString();
                 * graphicsDeviceVersion = SystemInfo.graphicsDeviceVersion;
                 * graphicsMemorySize = SystemInfo.graphicsMemorySize;
                 * systemMemorySize = SystemInfo.systemMemorySize;
                 * maxTextureSize = SystemInfo.maxTextureSize;
                 * operatingSystem = SystemInfo.operatingSystem;
                 * operatingSystemFamily = SystemInfo.operatingSystemFamily.ToString();
                 * processorCount = SystemInfo.processorCount;
                 * processorFrequency = SystemInfo.processorFrequency;
                 * processorType = SystemInfo.processorType;
                 */
            }
コード例 #2
0
 public override string?ToString() => CurrentPlatform?.ToString();