0
|
1 #pragma once
|
|
2
|
|
3
|
810
|
4
|
|
5
|
0
|
6 /* 61 */
|
|
7 #pragma pack(push, 1)
|
|
8 struct Timer
|
|
9 {
|
|
10 static Timer *Create() {return new Timer;}
|
|
11
|
|
12 Timer():
|
|
13 bReady(false), bPaused(false)
|
|
14 {
|
|
15 bTackGameTime = 0;
|
|
16 uStartTime = 0;
|
|
17 uStopTime = 0;
|
|
18 uGameTimeStart = 0;
|
|
19 field_18 = 0;
|
|
20 uTimeElapsed = 0;
|
|
21 dt_in_some_format = 0;
|
|
22 uTotalGameTimeElapsed = 0;
|
|
23 }
|
|
24
|
|
25 void Initialize();
|
|
26 unsigned __int64 Time();
|
783
|
27 void Update();
|
0
|
28 void Pause();
|
|
29 void Resume();
|
|
30 void TrackGameTime();
|
|
31 void StopGameTime();
|
|
32
|
|
33 unsigned int bReady;
|
|
34 unsigned int bPaused;
|
|
35 int bTackGameTime;
|
|
36 unsigned int uStartTime;
|
|
37 unsigned int uStopTime;
|
|
38 int uGameTimeStart;
|
|
39 int field_18;
|
|
40 unsigned int uTimeElapsed;
|
|
41 int dt_in_some_format;
|
|
42 unsigned int uTotalGameTimeElapsed;
|
|
43 };
|
957
|
44
|
0
|
45 #pragma pack(pop)
|
|
46
|
|
47
|
|
48
|
|
49 extern Timer *pMiscTimer;
|
957
|
50 extern Timer *pEventTimer;
|
|
51
|
|
52 const unsigned int Minute = 256;
|
|
53 const unsigned int Hour = 60 * Minute;
|
|
54 const unsigned int Day = 24 * Hour;
|
|
55 const unsigned int Week = 7 * Day;
|
|
56 const unsigned int Month = 4 * Week;
|
|
57 const unsigned int Year = 12 * Month; |