comparison Sprites.h @ 1028:fbde7d8fcdb1

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