comparison IconFrameTable.h @ 0:9c0607679772

init
author Ritor1
date Sat, 12 Jan 2013 09:45:18 +0600
parents
children 0dbf6c4dd029
comparison
equal deleted inserted replaced
-1:000000000000 0:9c0607679772
1 #pragma once
2
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();
32 void FromFile(void *pSerialized);
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
79 extern struct UIAnimation *pUIAnims[4];