view PlayerFrameTable.h @ 2215:e9625ad08541

fog fix and change 640,480 - window->GetWidth(), window->GetHeight()
author Ritor1
date Fri, 14 Feb 2014 18:08:30 +0600
parents 7ef4b64f6329
children 0f17a30149ec
line wrap: on
line source

#pragma once


/*   46 */
#pragma pack(push, 1)
struct PlayerFrame
{
  CHARACTER_EXPRESSION_ID expression;
  unsigned __int16 uTextureID;
  __int16 uAnimTime;
  __int16 uAnimLength;
  __int16 uFlags;
};
#pragma pack(pop)


/*   47 */
#pragma pack(push, 1)
struct PlayerFrameTable
{
  inline PlayerFrameTable():
    uNumFrames(0), pFrames(nullptr)
  {}

  unsigned int GetFrameIdByExpression(CHARACTER_EXPRESSION_ID expression);
  PlayerFrame *GetFrameBy_x(unsigned int uFramesetID, unsigned int uFrameID);
  PlayerFrame *GetFrameBy_y(int *a2, int *a3, int a4);
  void ToFile();
  void FromFile(void *data_mm6, void *data_mm7, void *data_mm8);
  int FromFileTxt(const char *Args);

  unsigned int uNumFrames;
  struct PlayerFrame *pFrames;
};
#pragma pack(pop)



extern struct PlayerFrameTable *pPlayerFrameTable; // idb