Mercurial > mm7
annotate IconFrameTable.h @ 1505:6306a33af531
UIGame.cpp cleaning(continue) wizard_eye
author | Ritor1 |
---|---|
date | Mon, 02 Sep 2013 12:03:25 +0600 |
parents | 7ef4b64f6329 |
children |
rev | line source |
---|---|
0 | 1 #pragma once |
1202 | 2 #include <array> |
0 | 3 |
4 | |
5 | |
6 | |
7 /* 44 */ | |
8 #pragma pack(push, 1) | |
9 struct IconFrame | |
10 { | |
11 char pAnimationName[12]; | |
12 char pTextureName[12]; | |
13 __int16 uAnimTime; | |
14 __int16 uAnimLength; | |
15 __int16 uFlags; | |
16 unsigned __int16 uTextureID; | |
17 }; | |
18 #pragma pack(pop) | |
19 | |
20 /* 45 */ | |
21 #pragma pack(push, 1) | |
22 struct IconFrameTable | |
23 { | |
24 inline IconFrameTable(): | |
25 uNumIcons(0), pIcons(nullptr) | |
26 {} | |
27 | |
28 unsigned int FindIcon(const char *pIconName); | |
29 IconFrame *GetFrame(unsigned int uIconID, unsigned int uFrameID); | |
30 void InitializeAnimation(unsigned int uIconID); | |
31 void ToFile(); | |
1477
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
1202
diff
changeset
|
32 void FromFile(void *data_mm6, void *data_mm7, void *data_mm8); |
0 | 33 int FromFileTxt(const char *Args); |
34 int GetIconAnimLength(unsigned int uIconID); | |
35 | |
36 unsigned int uNumIcons; | |
37 struct IconFrame *pIcons; | |
38 }; | |
39 #pragma pack(pop) | |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | |
50 | |
51 | |
52 /* 76 */ | |
53 #pragma pack(push, 1) | |
54 struct UIAnimation | |
55 { | |
56 unsigned __int16 uIconID; | |
57 __int16 field_2; | |
58 __int16 uAnimTime; | |
59 __int16 uAnimLength; | |
60 __int16 x; | |
61 __int16 y; | |
62 char field_C; | |
63 }; | |
64 #pragma pack(pop) | |
65 | |
66 | |
67 | |
68 | |
69 | |
70 | |
71 extern struct IconFrameTable *pIconsFrameTable; | |
72 | |
73 | |
74 extern struct UIAnimation *pUIAnim_Food; | |
75 extern struct UIAnimation *pUIAnim_Gold; | |
76 extern struct UIAnimation *pUIAnum_Torchlight; | |
77 extern struct UIAnimation *pUIAnim_WizardEye; | |
78 | |
1202 | 79 extern std::array<struct UIAnimation *, 4> pUIAnims; |