コード例 #1
0
 /// <summary>
 /// Adjusts the subtick of this instance.
 /// </summary>
 public void AdjustSubTick()
 {
     if (this.Started)
     {
         this.TotalSeconds = (LogicTime.GetSecondsInTicks(this.TotalSeconds) + this.StartSubTick) / 60;
         this.StartSubTick = 0;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LogicTimer"/> class.
 /// </summary>
 public LogicTimer(LogicTime time)
 {
     this.Time = time;
 }
コード例 #3
0
 /// <summary>
 /// Starts the timer.
 /// </summary>
 public void StartTimer(LogicTime time, int seconds)
 {
     this.Time         = time;
     this.TotalSeconds = seconds;
     this.StartSubTick = this.Time.ClientSubTick;
 }