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