annotate PlayerFrameTable.h @ 62:80484cf3a683

23.01.13 DrawParticles_ODM
author Ritor1
date Wed, 23 Jan 2013 00:50:28 +0600
parents 9c0607679772
children 1c471f3629fb
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
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 {
Ritor1
parents:
diff changeset
9 __int16 uSequenceID;
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
Ritor1
parents:
diff changeset
26 unsigned int GetFrameIdBy_field0(int uField0);
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