annotate ObjectList.h @ 728:9f596a163257

Merge
author Nomad
date Fri, 22 Mar 2013 00:06:50 +0200
parents 58b71c1af7d8
children 7ef4b64f6329
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 {
430
58b71c1af7d8 Objects are drawn (items, spells sfx)
Nomad
parents: 0
diff changeset
29 inline bool NoSprite() const {return uFlags & OBJECT_DESC_NO_SPRITE;}
58b71c1af7d8 Objects are drawn (items, spells sfx)
Nomad
parents: 0
diff changeset
30
0
Ritor1
parents:
diff changeset
31 char field_0[32];
Ritor1
parents:
diff changeset
32 __int16 uObjectID;
Ritor1
parents:
diff changeset
33 __int16 uRadius;
Ritor1
parents:
diff changeset
34 __int16 uHeight;
Ritor1
parents:
diff changeset
35 __int16 uFlags;
Ritor1
parents:
diff changeset
36 unsigned __int16 uSpriteID;
Ritor1
parents:
diff changeset
37 __int16 uLifetime;
Ritor1
parents:
diff changeset
38 unsigned int uParticleTrailColor;
Ritor1
parents:
diff changeset
39 __int16 uSpeed;
Ritor1
parents:
diff changeset
40 char uParticleTrailColorR;
Ritor1
parents:
diff changeset
41 char uParticleTrailColorG;
Ritor1
parents:
diff changeset
42 char uParticleTrailColorB;
Ritor1
parents:
diff changeset
43 char field_35_clr;
Ritor1
parents:
diff changeset
44 char field_36_clr;
Ritor1
parents:
diff changeset
45 char field_37_clr;
Ritor1
parents:
diff changeset
46 };
Ritor1
parents:
diff changeset
47 #pragma pack(pop)
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49 /* 57 */
Ritor1
parents:
diff changeset
50 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
51 struct ObjectList
Ritor1
parents:
diff changeset
52 {
Ritor1
parents:
diff changeset
53 inline ObjectList(): //----- (004583D5)
Ritor1
parents:
diff changeset
54 uNumObjects(0), pObjects(nullptr)
Ritor1
parents:
diff changeset
55 {}
Ritor1
parents:
diff changeset
56
Ritor1
parents:
diff changeset
57 void ToFile();
Ritor1
parents:
diff changeset
58 void FromFile(void *pSerialized);
Ritor1
parents:
diff changeset
59 bool FromFileTxt(const char *Args);
Ritor1
parents:
diff changeset
60 void InitializeSprites();
Ritor1
parents:
diff changeset
61 __int16 ObjectIDByItemID(unsigned __int16 uItemID);
Ritor1
parents:
diff changeset
62
Ritor1
parents:
diff changeset
63
Ritor1
parents:
diff changeset
64 unsigned int uNumObjects;
Ritor1
parents:
diff changeset
65 struct ObjectDesc *pObjects;
Ritor1
parents:
diff changeset
66 };
Ritor1
parents:
diff changeset
67 #pragma pack(pop)
Ritor1
parents:
diff changeset
68
Ritor1
parents:
diff changeset
69 extern struct ObjectList *pObjectList;