Mercurial > mm7
annotate ObjectList.h @ 1590:5792fdafe2f5
Слияние
author | Ritor1 |
---|---|
date | Wed, 11 Sep 2013 09:39:09 +0600 |
parents | 7ef4b64f6329 |
children | 92511cd8fcdb |
rev | line source |
---|---|
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) | |
1477
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
27 struct ObjectDesc_mm6 |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
28 { |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
29 inline bool NoSprite() const {return uFlags & OBJECT_DESC_NO_SPRITE;} |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
30 |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
31 char field_0[32]; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
32 __int16 uObjectID; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
33 __int16 uRadius; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
34 __int16 uHeight; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
35 __int16 uFlags; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
36 unsigned __int16 uSpriteID; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
37 __int16 uLifetime; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
38 unsigned short uParticleTrailColor; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
39 __int16 uSpeed; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
40 char uParticleTrailColorR; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
41 char uParticleTrailColorG; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
42 char uParticleTrailColorB; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
43 char field_35_clr; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
44 }; |
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
45 |
0 | 46 struct ObjectDesc |
47 { | |
430 | 48 inline bool NoSprite() const {return uFlags & OBJECT_DESC_NO_SPRITE;} |
49 | |
0 | 50 char field_0[32]; |
51 __int16 uObjectID; | |
52 __int16 uRadius; | |
53 __int16 uHeight; | |
54 __int16 uFlags; | |
55 unsigned __int16 uSpriteID; | |
56 __int16 uLifetime; | |
57 unsigned int uParticleTrailColor; | |
58 __int16 uSpeed; | |
59 char uParticleTrailColorR; | |
60 char uParticleTrailColorG; | |
61 char uParticleTrailColorB; | |
62 char field_35_clr; | |
63 char field_36_clr; | |
64 char field_37_clr; | |
65 }; | |
66 #pragma pack(pop) | |
67 | |
68 /* 57 */ | |
69 #pragma pack(push, 1) | |
70 struct ObjectList | |
71 { | |
72 inline ObjectList(): //----- (004583D5) | |
73 uNumObjects(0), pObjects(nullptr) | |
74 {} | |
75 | |
76 void ToFile(); | |
1477
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
430
diff
changeset
|
77 void FromFile(void *data_mm6, void *data_mm7, void *data_mm8); |
0 | 78 bool FromFileTxt(const char *Args); |
79 void InitializeSprites(); | |
80 __int16 ObjectIDByItemID(unsigned __int16 uItemID); | |
81 | |
82 | |
83 unsigned int uNumObjects; | |
84 struct ObjectDesc *pObjects; | |
85 }; | |
86 #pragma pack(pop) | |
87 | |
88 extern struct ObjectList *pObjectList; |