annotate Engine/Objects/ObjectList.h @ 2518:3a1b56ab8749

d3d11 accepts RGBTexture
author a.parshin
date Thu, 09 Oct 2014 00:06:47 +0300
parents 92eeeb5200f2
children
rev   line source
2498
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_mm6
Ritor1
parents:
diff changeset
28 {
Ritor1
parents:
diff changeset
29 inline bool NoSprite() const {return uFlags & OBJECT_DESC_NO_SPRITE;}
Ritor1
parents:
diff changeset
30
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 short 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 };
Ritor1
parents:
diff changeset
45
Ritor1
parents:
diff changeset
46 struct ObjectDesc
Ritor1
parents:
diff changeset
47 {
Ritor1
parents:
diff changeset
48 inline bool NoSprite() const {return uFlags & OBJECT_DESC_NO_SPRITE;}
Ritor1
parents:
diff changeset
49
Ritor1
parents:
diff changeset
50 char field_0[32];
Ritor1
parents:
diff changeset
51 __int16 uObjectID;
Ritor1
parents:
diff changeset
52 __int16 uRadius;
Ritor1
parents:
diff changeset
53 __int16 uHeight;
Ritor1
parents:
diff changeset
54 __int16 uFlags;
Ritor1
parents:
diff changeset
55 unsigned __int16 uSpriteID;
Ritor1
parents:
diff changeset
56 __int16 uLifetime;
Ritor1
parents:
diff changeset
57 unsigned int uParticleTrailColor;
Ritor1
parents:
diff changeset
58 __int16 uSpeed;
Ritor1
parents:
diff changeset
59 unsigned char uParticleTrailColorR;
Ritor1
parents:
diff changeset
60 unsigned char uParticleTrailColorG;
Ritor1
parents:
diff changeset
61 unsigned char uParticleTrailColorB;
Ritor1
parents:
diff changeset
62 char field_35_clr;
Ritor1
parents:
diff changeset
63 char field_36_clr;
Ritor1
parents:
diff changeset
64 char field_37_clr;
Ritor1
parents:
diff changeset
65 };
Ritor1
parents:
diff changeset
66 #pragma pack(pop)
Ritor1
parents:
diff changeset
67
Ritor1
parents:
diff changeset
68 /* 57 */
Ritor1
parents:
diff changeset
69 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
70 struct ObjectList
Ritor1
parents:
diff changeset
71 {
Ritor1
parents:
diff changeset
72 inline ObjectList(): //----- (004583D5)
Ritor1
parents:
diff changeset
73 uNumObjects(0), pObjects(nullptr)
Ritor1
parents:
diff changeset
74 {}
Ritor1
parents:
diff changeset
75
Ritor1
parents:
diff changeset
76 void ToFile();
Ritor1
parents:
diff changeset
77 void FromFile(void *data_mm6, void *data_mm7, void *data_mm8);
Ritor1
parents:
diff changeset
78 bool FromFileTxt(const char *Args);
Ritor1
parents:
diff changeset
79 void InitializeSprites();
Ritor1
parents:
diff changeset
80 __int16 ObjectIDByItemID(unsigned __int16 uItemID);
Ritor1
parents:
diff changeset
81
Ritor1
parents:
diff changeset
82
Ritor1
parents:
diff changeset
83 unsigned int uNumObjects;
Ritor1
parents:
diff changeset
84 struct ObjectDesc *pObjects;
Ritor1
parents:
diff changeset
85 };
Ritor1
parents:
diff changeset
86 #pragma pack(pop)
Ritor1
parents:
diff changeset
87
Ritor1
parents:
diff changeset
88 extern struct ObjectList *pObjectList;