comparison IconFrameTable.h @ 0:8b8875f5b359

Initial commit
author Nomad
date Fri, 05 Oct 2012 16:07:14 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8b8875f5b359
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];