0
|
1 #pragma once
|
|
2
|
|
3
|
|
4 /* 18 */
|
|
5 #pragma pack(push, 1)
|
1103
|
6 class Sprite //28h
|
0
|
7 {
|
1103
|
8 public:
|
1017
|
9 void Release();
|
0
|
10
|
1017
|
11 const char *pName; //0
|
|
12 int uPaletteID; //4
|
|
13 struct IDirectDrawSurface4 *pTextureSurface; //8
|
|
14 struct IDirect3DTexture2 *pTexture; //ch
|
|
15 int uAreaX; //10h
|
|
16 int uAreaY; //14h
|
|
17 int uBufferWidth; //18h
|
|
18 int uBufferHeight; //1ch
|
|
19 int uAreaWidth; //20h
|
|
20 int uAreaHeight; //24h
|
0
|
21 };
|
|
22 #pragma pack(pop)
|
|
23
|
|
24
|
|
25 /* 42 */
|
|
26 #pragma pack(push, 1)
|
1103
|
27 class SpriteFrame
|
0
|
28 {
|
1103
|
29 public:
|
1017
|
30 char pIconName[12];
|
|
31 char pTextureName[12]; //c
|
|
32 __int16 pHwSpriteIDs[8]; //18h
|
|
33 int scale; //28h
|
|
34 int uFlags; //2c
|
|
35 __int16 uGlowRadius; //30
|
|
36 __int16 uPaletteID; //32
|
|
37 __int16 uPaletteIndex;
|
|
38 __int16 uAnimTime;
|
|
39 __int16 uAnimLength;
|
|
40 __int16 _pad;
|
0
|
41 };
|
|
42 #pragma pack(pop)
|
|
43
|
|
44 /* 43 */
|
|
45 #pragma pack(push, 1)
|
|
46 struct SpriteFrameTable
|
|
47 {
|
1017
|
48 //----- (0044D4BA) --------------------------------------------------------
|
|
49 inline SpriteFrameTable()
|
|
50 {
|
|
51 uNumSpriteFrames = 0;
|
|
52 pSpriteSFrames = nullptr;
|
|
53 pSpritePFrames = nullptr;
|
|
54 pSpriteEFrames = nullptr;
|
|
55 }
|
|
56 void ToFile();
|
|
57 void FromFile(void *pSerialized);
|
|
58 bool FromFileTxt(const char *Args);
|
|
59 void ReleaseSFrames();
|
|
60 void ResetSomeSpriteFlags();
|
|
61 void InitializeSprite(signed int uSpriteID);
|
|
62 signed int FastFindSprite(char *pSpriteName);
|
|
63 int BinarySearch(const char *pSpriteName);
|
|
64 SpriteFrame *GetFrame(unsigned int uSpriteID, unsigned int uTime);
|
|
65 SpriteFrame *GetFrameBy_x(unsigned int uSpriteID, signed int a3);
|
0
|
66
|
1017
|
67 signed int uNumSpriteFrames;
|
|
68 unsigned int uNumEFrames;//field_4;
|
|
69 int unused_field; //field_8
|
1103
|
70 SpriteFrame *pSpriteSFrames; //0c
|
|
71 SpriteFrame **pSpritePFrames; //10h
|
1017
|
72 __int16 *pSpriteEFrames; //14h
|
0
|
73 };
|
|
74 #pragma pack(pop)
|
|
75
|
|
76
|
|
77
|
|
78
|
|
79
|
|
80
|
|
81 extern struct SpriteFrameTable *pSpriteFrameTable; |