annotate ObjectList.h @ 79:2fd44e5cbe89

Слияние
author Ritor1
date Sun, 28 Oct 2012 09:20:28 +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
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 /* 324 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 enum OBJECT_DESC_FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 OBJECT_DESC_NO_SPRITE = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 OBJECT_DESC_NO_COLLISION = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 OBJECT_DESC_TEMPORARY = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 OBJECT_DESC_SFT_LIFETIME = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 OBJECT_DESC_UNPICKABLE = 0x10,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 OBJECT_DESC_NO_GRAVITY = 0x20,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 OBJECT_DESC_INTERACTABLE = 0x40,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 OBJECT_DESC_BOUNCE = 0x80,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 OBJECT_DESC_TRIAL_PARTICLE = 0x100,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 OBJECT_DESC_TRIAL_FIRE = 0x200,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 OBJECT_DESC_TRIAL_LINE = 0x400,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 /* 56 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 struct ObjectDesc
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 char field_0[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 __int16 uObjectID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 __int16 uHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 __int16 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 unsigned __int16 uSpriteID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 __int16 uLifetime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 unsigned int uParticleTrailColor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 __int16 uSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 char uParticleTrailColorR;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 char uParticleTrailColorG;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 char uParticleTrailColorB;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 char field_35_clr;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 char field_36_clr;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 char field_37_clr;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 /* 57 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 struct ObjectList
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 inline ObjectList(): //----- (004583D5)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 uNumObjects(0), pObjects(nullptr)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 {}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 void ToFile();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 void FromFile(void *pSerialized);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 bool FromFileTxt(const char *Args);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 void InitializeSprites();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 __int16 ObjectIDByItemID(unsigned __int16 uItemID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 unsigned int uNumObjects;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 struct ObjectDesc *pObjects;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 extern struct ObjectList *pObjectList;