annotate IconFrameTable.h @ 206:c38d2f00e3ad

9.01.13
author Ritor1
date Wed, 09 Jan 2013 17:32:10 +0600
parents 8b8875f5b359
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
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 /* 44 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 struct IconFrame
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 char pAnimationName[12];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 char pTextureName[12];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 __int16 uAnimTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 __int16 uAnimLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 __int16 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 unsigned __int16 uTextureID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 /* 45 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 struct IconFrameTable
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 inline IconFrameTable():
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 uNumIcons(0), pIcons(nullptr)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 {}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 unsigned int FindIcon(const char *pIconName);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 IconFrame *GetFrame(unsigned int uIconID, unsigned int uFrameID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 void InitializeAnimation(unsigned int uIconID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 void ToFile();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 void FromFile(void *pSerialized);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 int FromFileTxt(const char *Args);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 int GetIconAnimLength(unsigned int uIconID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 unsigned int uNumIcons;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 struct IconFrame *pIcons;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42
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
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 /* 76 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 struct UIAnimation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 unsigned __int16 uIconID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 __int16 uAnimTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 __int16 uAnimLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 __int16 x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 __int16 y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 char field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 extern struct IconFrameTable *pIconsFrameTable;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 extern struct UIAnimation *pUIAnim_Food;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 extern struct UIAnimation *pUIAnim_Gold;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 extern struct UIAnimation *pUIAnum_Torchlight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 extern struct UIAnimation *pUIAnim_WizardEye;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 extern struct UIAnimation *pUIAnims[4];