コード例 #1
0
ファイル: GameTime.cs プロジェクト: Hengle/Stendhal-Prototype
 static void InitStaticVariables()
 {
     s_mode            = GameTimeMode.UnityStandard;
     s_manualTime      = 0;
     s_manualDeltaTime = 0;
     s_manualPaused    = false;
 }
コード例 #2
0
 /// <summary>
 /// Inits the GameTime given its mode.
 /// Starts the internal stopwatch.
 /// </summary>
 public GameTime(GameTimeMode mode = GameTimeMode.Stopwatch)
 {
     this.Mode      = mode;
     this.stopwatch = new Stopwatch();
     this.stopwatch.Start();
 }