Пример #1
0
 public GameTimer(World.Time offset)
 {
     _totalSeconds     = offset.seconds;
     _secondsInTick    = 0;
     _maxSecondsInTick = offset.maxSecondsInTicks;
     _tick             = offset.tick;
     _watch            = new SetableStopwatch(new TimeSpan(0, 0, 0));
     _watch.Start();
     _previousSecond = (int)_watch.Seconds;
     Logger.Log("Game Timer Initialized.");
 }
Пример #2
0
 public GameTimer(World.Time offset)
 {
     _totalSeconds = offset.seconds;
     _secondsInTick = 0;
     _maxSecondsInTick = offset.maxSecondsInTicks;
     _tick = offset.tick;
     _watch = new SetableStopwatch (new TimeSpan(0, 0, 0));
     _watch.Start ();
     _previousSecond = (int)_watch.Seconds;
     Logger.Log ("Game Timer Initialized.");
 }