0
|
1 #pragma once
|
130
|
2 #include "Player.h"
|
0
|
3
|
|
4
|
|
5 /* 46 */
|
|
6 #pragma pack(push, 1)
|
|
7 struct PlayerFrame
|
|
8 {
|
130
|
9 CHARACTER_EXPRESSION_ID expression;
|
0
|
10 unsigned __int16 uTextureID;
|
|
11 __int16 uAnimTime;
|
|
12 __int16 uAnimLength;
|
|
13 __int16 uFlags;
|
|
14 };
|
|
15 #pragma pack(pop)
|
|
16
|
|
17
|
|
18 /* 47 */
|
|
19 #pragma pack(push, 1)
|
|
20 struct PlayerFrameTable
|
|
21 {
|
|
22 inline PlayerFrameTable():
|
|
23 uNumFrames(0), pFrames(nullptr)
|
|
24 {}
|
|
25
|
130
|
26 unsigned int GetFrameIdByExpression(CHARACTER_EXPRESSION_ID expression);
|
0
|
27 PlayerFrame *GetFrameBy_x(unsigned int uFramesetID, unsigned int uFrameID);
|
|
28 PlayerFrame *GetFrameBy_y(int *a2, int *a3, int a4);
|
|
29 void ToFile();
|
|
30 void FromFile(void *pSerialized);
|
|
31 int FromFileTxt(const char *Args);
|
|
32
|
|
33 unsigned int uNumFrames;
|
|
34 struct PlayerFrame *pFrames;
|
|
35 };
|
|
36 #pragma pack(pop)
|
|
37
|
|
38
|
|
39
|
|
40 extern struct PlayerFrameTable *pPlayerFrameTable; // idb |