/// <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; } }
/// <summary> /// Initializes a new instance of the <see cref="LogicTimer"/> class. /// </summary> public LogicTimer(LogicTime time) { this.Time = time; }
/// <summary> /// Starts the timer. /// </summary> public void StartTimer(LogicTime time, int seconds) { this.Time = time; this.TotalSeconds = seconds; this.StartSubTick = this.Time.ClientSubTick; }