annotate PlayerFrameTable.h @ 198:03d52010d433

29.12.12
author Ritor1
date Sat, 29 Dec 2012 14:18:06 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 /* 46 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 struct PlayerFrame
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 __int16 uSequenceID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 unsigned __int16 uTextureID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 __int16 uAnimTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 __int16 uAnimLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 __int16 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 /* 47 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 struct PlayerFrameTable
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 inline PlayerFrameTable():
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 uNumFrames(0), pFrames(nullptr)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 {}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 unsigned int GetFrameIdBy_field0(int uField0);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 PlayerFrame *GetFrameBy_x(unsigned int uFramesetID, unsigned int uFrameID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 PlayerFrame *GetFrameBy_y(int *a2, int *a3, int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 void ToFile();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 void FromFile(void *pSerialized);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 int FromFileTxt(const char *Args);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 unsigned int uNumFrames;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 struct PlayerFrame *pFrames;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 extern struct PlayerFrameTable *pPlayerFrameTable; // idb