Mercurial > mm7
annotate PlayerFrameTable.h @ 1944:02bc0fac639f
fixing inventory right click crash
author | Grumpy7 |
---|---|
date | Fri, 25 Oct 2013 00:51:32 -0700 |
parents | 7ef4b64f6329 |
children | 0f17a30149ec |
rev | line source |
---|---|
0 | 1 #pragma once |
2 | |
3 | |
4 /* 46 */ | |
5 #pragma pack(push, 1) | |
6 struct PlayerFrame | |
7 { | |
130 | 8 CHARACTER_EXPRESSION_ID expression; |
0 | 9 unsigned __int16 uTextureID; |
10 __int16 uAnimTime; | |
11 __int16 uAnimLength; | |
12 __int16 uFlags; | |
13 }; | |
14 #pragma pack(pop) | |
15 | |
16 | |
17 /* 47 */ | |
18 #pragma pack(push, 1) | |
19 struct PlayerFrameTable | |
20 { | |
21 inline PlayerFrameTable(): | |
22 uNumFrames(0), pFrames(nullptr) | |
23 {} | |
24 | |
130 | 25 unsigned int GetFrameIdByExpression(CHARACTER_EXPRESSION_ID expression); |
0 | 26 PlayerFrame *GetFrameBy_x(unsigned int uFramesetID, unsigned int uFrameID); |
27 PlayerFrame *GetFrameBy_y(int *a2, int *a3, int a4); | |
28 void ToFile(); | |
1477
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
1254
diff
changeset
|
29 void FromFile(void *data_mm6, void *data_mm7, void *data_mm8); |
0 | 30 int FromFileTxt(const char *Args); |
31 | |
32 unsigned int uNumFrames; | |
33 struct PlayerFrame *pFrames; | |
34 }; | |
35 #pragma pack(pop) | |
36 | |
37 | |
38 | |
39 extern struct PlayerFrameTable *pPlayerFrameTable; // idb |