Mercurial > mm7
comparison Engine/Tables/PlayerFrameTable.h @ 2499:68cdef6879a0
engine folder
author | Ritor1 |
---|---|
date | Fri, 19 Sep 2014 02:57:42 +0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2498:92eeeb5200f2 | 2499:68cdef6879a0 |
---|---|
1 #pragma once | |
2 | |
3 #include "Engine/Objects/Player.h" | |
4 | |
5 /* 46 */ | |
6 #pragma pack(push, 1) | |
7 struct PlayerFrame | |
8 { | |
9 CHARACTER_EXPRESSION_ID expression; | |
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 | |
26 unsigned int GetFrameIdByExpression(CHARACTER_EXPRESSION_ID expression); | |
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 *data_mm6, void *data_mm7, void *data_mm8); | |
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 |