annotate Time.h @ 110:430786d916d6

6.11.12 SaveLoad
author Ritor1
date Tue, 06 Nov 2012 17:30:24 +0600
parents 93bf1d5f6a6d
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 /* 61 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 struct Timer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 static Timer *Create() {return new Timer;}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 Timer():
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 bReady(false), bPaused(false)
26
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
12 {
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
13 bTackGameTime = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
14 uStartTime = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
15 uStopTime = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
16 uGameTimeStart = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
17 field_18 = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
18 uTimeElapsed = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
19 dt_in_some_format = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
20 uTotalGameTimeElapsed = 0;
93bf1d5f6a6d Game loading.
Nomad
parents: 0
diff changeset
21 }
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 void Initialize();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 unsigned __int64 Time();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 int Update();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 void Pause();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 void Resume();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 void TrackGameTime();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 void StopGameTime();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 unsigned int bReady;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 unsigned int bPaused;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 int bTackGameTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 unsigned int uStartTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 unsigned int uStopTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 int uGameTimeStart;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 int field_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 unsigned int uTimeElapsed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 int dt_in_some_format;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 unsigned int uTotalGameTimeElapsed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 extern Timer *pMiscTimer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 extern Timer *pEventTimer;