annotate PlayerFrameTable.h @ 846:39503542470c

UpdateActors_ODM cleaning 2
author zipi
date Fri, 29 Mar 2013 16:32:02 +0000
parents 1c471f3629fb
children b9747d9e9b4e
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
2 #include "Player.h"
0
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5 /* 46 */
Ritor1
parents:
diff changeset
6 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
7 struct PlayerFrame
Ritor1
parents:
diff changeset
8 {
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
9 CHARACTER_EXPRESSION_ID expression;
0
Ritor1
parents:
diff changeset
10 unsigned __int16 uTextureID;
Ritor1
parents:
diff changeset
11 __int16 uAnimTime;
Ritor1
parents:
diff changeset
12 __int16 uAnimLength;
Ritor1
parents:
diff changeset
13 __int16 uFlags;
Ritor1
parents:
diff changeset
14 };
Ritor1
parents:
diff changeset
15 #pragma pack(pop)
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17
Ritor1
parents:
diff changeset
18 /* 47 */
Ritor1
parents:
diff changeset
19 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
20 struct PlayerFrameTable
Ritor1
parents:
diff changeset
21 {
Ritor1
parents:
diff changeset
22 inline PlayerFrameTable():
Ritor1
parents:
diff changeset
23 uNumFrames(0), pFrames(nullptr)
Ritor1
parents:
diff changeset
24 {}
Ritor1
parents:
diff changeset
25
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
26 unsigned int GetFrameIdByExpression(CHARACTER_EXPRESSION_ID expression);
0
Ritor1
parents:
diff changeset
27 PlayerFrame *GetFrameBy_x(unsigned int uFramesetID, unsigned int uFrameID);
Ritor1
parents:
diff changeset
28 PlayerFrame *GetFrameBy_y(int *a2, int *a3, int a4);
Ritor1
parents:
diff changeset
29 void ToFile();
Ritor1
parents:
diff changeset
30 void FromFile(void *pSerialized);
Ritor1
parents:
diff changeset
31 int FromFileTxt(const char *Args);
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33 unsigned int uNumFrames;
Ritor1
parents:
diff changeset
34 struct PlayerFrame *pFrames;
Ritor1
parents:
diff changeset
35 };
Ritor1
parents:
diff changeset
36 #pragma pack(pop)
Ritor1
parents:
diff changeset
37
Ritor1
parents:
diff changeset
38
Ritor1
parents:
diff changeset
39
Ritor1
parents:
diff changeset
40 extern struct PlayerFrameTable *pPlayerFrameTable; // idb