annotate ObjectList.h @ 221:c122d90a620a

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