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