annotate IconFrameTable.h @ 1231:182b910c528d

Слияние
author Ritor1
date Sun, 09 Jun 2013 10:18:51 +0600
parents 0dbf6c4dd029
children 7ef4b64f6329
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 0
diff changeset
2 #include <array>
0
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7 /* 44 */
Ritor1
parents:
diff changeset
8 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
9 struct IconFrame
Ritor1
parents:
diff changeset
10 {
Ritor1
parents:
diff changeset
11 char pAnimationName[12];
Ritor1
parents:
diff changeset
12 char pTextureName[12];
Ritor1
parents:
diff changeset
13 __int16 uAnimTime;
Ritor1
parents:
diff changeset
14 __int16 uAnimLength;
Ritor1
parents:
diff changeset
15 __int16 uFlags;
Ritor1
parents:
diff changeset
16 unsigned __int16 uTextureID;
Ritor1
parents:
diff changeset
17 };
Ritor1
parents:
diff changeset
18 #pragma pack(pop)
Ritor1
parents:
diff changeset
19
Ritor1
parents:
diff changeset
20 /* 45 */
Ritor1
parents:
diff changeset
21 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
22 struct IconFrameTable
Ritor1
parents:
diff changeset
23 {
Ritor1
parents:
diff changeset
24 inline IconFrameTable():
Ritor1
parents:
diff changeset
25 uNumIcons(0), pIcons(nullptr)
Ritor1
parents:
diff changeset
26 {}
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28 unsigned int FindIcon(const char *pIconName);
Ritor1
parents:
diff changeset
29 IconFrame *GetFrame(unsigned int uIconID, unsigned int uFrameID);
Ritor1
parents:
diff changeset
30 void InitializeAnimation(unsigned int uIconID);
Ritor1
parents:
diff changeset
31 void ToFile();
Ritor1
parents:
diff changeset
32 void FromFile(void *pSerialized);
Ritor1
parents:
diff changeset
33 int FromFileTxt(const char *Args);
Ritor1
parents:
diff changeset
34 int GetIconAnimLength(unsigned int uIconID);
Ritor1
parents:
diff changeset
35
Ritor1
parents:
diff changeset
36 unsigned int uNumIcons;
Ritor1
parents:
diff changeset
37 struct IconFrame *pIcons;
Ritor1
parents:
diff changeset
38 };
Ritor1
parents:
diff changeset
39 #pragma pack(pop)
Ritor1
parents:
diff changeset
40
Ritor1
parents:
diff changeset
41
Ritor1
parents:
diff changeset
42
Ritor1
parents:
diff changeset
43
Ritor1
parents:
diff changeset
44
Ritor1
parents:
diff changeset
45
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49
Ritor1
parents:
diff changeset
50
Ritor1
parents:
diff changeset
51
Ritor1
parents:
diff changeset
52 /* 76 */
Ritor1
parents:
diff changeset
53 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
54 struct UIAnimation
Ritor1
parents:
diff changeset
55 {
Ritor1
parents:
diff changeset
56 unsigned __int16 uIconID;
Ritor1
parents:
diff changeset
57 __int16 field_2;
Ritor1
parents:
diff changeset
58 __int16 uAnimTime;
Ritor1
parents:
diff changeset
59 __int16 uAnimLength;
Ritor1
parents:
diff changeset
60 __int16 x;
Ritor1
parents:
diff changeset
61 __int16 y;
Ritor1
parents:
diff changeset
62 char field_C;
Ritor1
parents:
diff changeset
63 };
Ritor1
parents:
diff changeset
64 #pragma pack(pop)
Ritor1
parents:
diff changeset
65
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67
Ritor1
parents:
diff changeset
68
Ritor1
parents:
diff changeset
69
Ritor1
parents:
diff changeset
70
Ritor1
parents:
diff changeset
71 extern struct IconFrameTable *pIconsFrameTable;
Ritor1
parents:
diff changeset
72
Ritor1
parents:
diff changeset
73
Ritor1
parents:
diff changeset
74 extern struct UIAnimation *pUIAnim_Food;
Ritor1
parents:
diff changeset
75 extern struct UIAnimation *pUIAnim_Gold;
Ritor1
parents:
diff changeset
76 extern struct UIAnimation *pUIAnum_Torchlight;
Ritor1
parents:
diff changeset
77 extern struct UIAnimation *pUIAnim_WizardEye;
Ritor1
parents:
diff changeset
78
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 0
diff changeset
79 extern std::array<struct UIAnimation *, 4> pUIAnims;