annotate Engine/Tables/PlayerFrameTable.h @ 2499:68cdef6879a0

engine folder
author Ritor1
date Fri, 19 Sep 2014 02:57:42 +0600
parents
children
rev   line source
2499
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
1 #pragma once
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
2
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
3 #include "Engine/Objects/Player.h"
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
4
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
5 /* 46 */
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
6 #pragma pack(push, 1)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
7 struct PlayerFrame
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
8 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
9 CHARACTER_EXPRESSION_ID expression;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
10 unsigned __int16 uTextureID;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
11 __int16 uAnimTime;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
12 __int16 uAnimLength;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
13 __int16 uFlags;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
14 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
15 #pragma pack(pop)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
16
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
17
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
18 /* 47 */
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
19 #pragma pack(push, 1)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
20 struct PlayerFrameTable
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
21 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
22 inline PlayerFrameTable():
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
23 uNumFrames(0), pFrames(nullptr)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
24 {}
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
25
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
26 unsigned int GetFrameIdByExpression(CHARACTER_EXPRESSION_ID expression);
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
27 PlayerFrame *GetFrameBy_x(unsigned int uFramesetID, unsigned int uFrameID);
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
28 PlayerFrame *GetFrameBy_y(int *a2, int *a3, int a4);
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
29 void ToFile();
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
30 void FromFile(void *data_mm6, void *data_mm7, void *data_mm8);
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
31 int FromFileTxt(const char *Args);
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
32
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
33 unsigned int uNumFrames;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
34 struct PlayerFrame *pFrames;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
35 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
36 #pragma pack(pop)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
37
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
38
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
39
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
40 extern struct PlayerFrameTable *pPlayerFrameTable; // idb