TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ StopPlayTimer()

void Terraria.IO.PlayerFileData.StopPlayTimer ( )
inline

Definition at line 197 of file PlayerFileData.cs.

198 {
199 if (_isTimerActive)
200 {
201 _isTimerActive = false;
202 if (_timer.IsRunning)
203 {
204 _playTime += _timer.Elapsed;
205 _timer.Reset();
206 }
207 }
208 }
readonly Stopwatch _timer

References Terraria.IO.PlayerFileData._isTimerActive, Terraria.IO.PlayerFileData._playTime, and Terraria.IO.PlayerFileData._timer.

Referenced by Terraria.IO.PlayerFileData.PausePlayTimer().

+ Here is the caller graph for this function: