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

◆ UpdatePlayTimer()

void Terraria.IO.PlayerFileData.UpdatePlayTimer ( )
inline

Definition at line 135 of file PlayerFileData.cs.

136 {
137 bool flag = Main.gamePaused && !Main.hasFocus;
138 bool flag2 = Main.instance.IsActive && !flag;
139 if (Main.gameMenu)
140 {
141 flag2 = false;
142 }
143 if (flag2)
144 {
146 }
147 else
148 {
150 }
151 }

References Terraria.Main.gameMenu, Terraria.Main.hasFocus, Terraria.IO.PlayerFileData.PausePlayTimer(), and Terraria.IO.PlayerFileData.StartPlayTimer().