annotate Engine/Tables/IconFrameTable.h @ 2532:9ec6b8be16fe

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