forked from derandark/DungeonViewerAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameTime.h
82 lines (66 loc) · 1.18 KB
/
GameTime.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//
// GameTime.h
//
#pragma once
#include "PString.h"
#include "SmartArray.h"
class TimeOfDay
{
public:
TimeOfDay();
BOOL UnPack(BYTE **ppData, ULONG& iSize);
PString m_00;
DWORD m_04;
DWORD m_08;
};
class WeekDay
{
public:
WeekDay();
BOOL UnPack(BYTE **ppData, ULONG& iSize);
PString m_00;
};
class Season
{
public:
Season();
BOOL UnPack(BYTE **ppData, ULONG& iSize);
PString m_00;
DWORD m_04;
};
class GameTime
{
public:
GameTime();
~GameTime();
void Destroy();
BOOL UnPack(BYTE **ppData, ULONG& iSize);
void UseTime();
void CalcDayBegin(double arg_0);
void CalcTimeOfDay(double arg_0);
double m_00;
DWORD m_08;
float m_0C;
DWORD m_10;
SmartArray<TimeOfDay *> m_TimeOfDays;
SmartArray<WeekDay *> m_WeekDays;
SmartArray<Season *> m_Seasons;
PString m_38;
DWORD m_3C;
double m_40;
float m_48;
DWORD m_4C;
double m_50;
DWORD m_58;
DWORD m_5C;
DWORD m_60;
DWORD m_64;
DWORD m_68;
DWORD m_6C;
DWORD m_70;
DWORD m_74;
double m_78;
double m_80;
static GameTime *current_game_time;
static double global_next_event;
};