コード例 #1
0
        /// <summary>
        /// Obtain a default initialized ApplicationSettings object.
        /// </summary>
        public static SettingsData GetDefault()
        {
            SettingsData appSettings = new SettingsData();
              appSettings.ScreenWidth = 1280;
              appSettings.ScreenHeight = 768;
              appSettings.MultiThreading = true;

              return appSettings;
        }
コード例 #2
0
ファイル: Settings.cs プロジェクト: FooKittens/Team_Practice
 /// <summary>
 /// Initializes the globally accessible Settings class with a data object.
 /// </summary>
 /// <param name="data"></param>
 public static void Initialize(SettingsData data)
 {
     ScreenWidth = data.ScreenWidth;
       ScreenHeight = data.ScreenHeight;
       MultiThreading = data.MultiThreading;
 }