diff Sprites.h @ 670:9824e2eeee30

fixed decorations animation
author Gloval
date Fri, 15 Mar 2013 01:51:51 +0400
parents 4f2837124c69
children af20650a052f
line wrap: on
line diff
--- a/Sprites.h	Wed Mar 13 17:08:21 2013 +0600
+++ b/Sprites.h	Fri Mar 15 01:51:51 2013 +0400
@@ -3,20 +3,20 @@
 
 /*   18 */
 #pragma pack(push, 1)
-struct Sprite
+struct Sprite  //28h
 {
   void Release();
 
-  const char *pName;
-  int uPaletteID;
-  struct IDirectDrawSurface4 *pTextureSurface;
-  struct IDirect3DTexture2 *pTexture;
-  int uAreaX;
-  int uAreaY;
-  int uBufferWidth;
-  int uBufferHeight;
-  int uAreaWidth;
-  int uAreaHeight;
+  const char *pName;  //0
+  int uPaletteID; //4
+  struct IDirectDrawSurface4 *pTextureSurface;  //8
+  struct IDirect3DTexture2 *pTexture;   //ch
+  int uAreaX;  //10h
+  int uAreaY;  //14h
+  int uBufferWidth;  //18h
+  int uBufferHeight;  //1ch
+  int uAreaWidth;  //20h
+  int uAreaHeight; //24h
 };
 #pragma pack(pop)
 
@@ -25,13 +25,13 @@
 #pragma pack(push, 1)
 struct SpriteFrame
 {
-  char pIconName[12];
-  char pTextureName[12];
-  __int16 pHwSpriteIDs[8];
-  int scale;
-  int uFlags;
-  __int16 uGlowRadius;
-  __int16 uPaletteID;
+  char pIconName[12]; 
+  char pTextureName[12]; //c
+  __int16 pHwSpriteIDs[8]; //18h
+  int scale; //28h
+  int uFlags; //2c
+  __int16 uGlowRadius; //30
+  __int16 uPaletteID;  //32
   __int16 uPaletteIndex;
   __int16 uAnimTime;
   __int16 uAnimLength;
@@ -56,18 +56,18 @@
   bool FromFileTxt(const char *Args);
   void ReleaseSFrames();
   void ResetSomeSpriteFlags();
-  void InitializeSprite(unsigned int uSpriteID);
-  unsigned int FastFindSprite(char *pSpriteName);
+  void InitializeSprite(signed int uSpriteID);
+  signed int FastFindSprite(char *pSpriteName);
   void BinarySearch(int a2, int a3, const char *pSpriteName);
   SpriteFrame *GetFrame(unsigned int uSpriteID, unsigned int uTime);
   SpriteFrame *GetFrameBy_x(unsigned int uSpriteID, signed int a3);
 
-  unsigned int uNumSpriteFrames;
+  signed int uNumSpriteFrames;
   unsigned int uNumEFrames;//field_4;
   int field_8;
-  struct SpriteFrame *pSpriteSFrames;
-  struct SpriteFrame **pSpritePFrames;
-  __int16 *pSpriteEFrames;
+  struct SpriteFrame *pSpriteSFrames;  //0c
+  struct SpriteFrame **pSpritePFrames; //10h
+  __int16 *pSpriteEFrames; //14h
 };
 #pragma pack(pop)