annotate DecorationList.h @ 212:9f349addbe00

Слияние
author Ritor1
date Sat, 16 Feb 2013 22:14:04 +0600
parents 9c0607679772
children 5bea494a2365
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 /* 321 */
Ritor1
parents:
diff changeset
7 enum DECORATION_FLAGS
Ritor1
parents:
diff changeset
8 {
Ritor1
parents:
diff changeset
9 DECORATION_MOVE_THROUGH = 0x1,
Ritor1
parents:
diff changeset
10 DECORATION_DONT_DRAW = 0x2,
Ritor1
parents:
diff changeset
11 DECORATION_FLICKER_SLOW = 0x4,
Ritor1
parents:
diff changeset
12 DECORATION_FICKER_AVERAGE = 0x8,
Ritor1
parents:
diff changeset
13 DECORATION_FICKER_FAST = 0x10,
Ritor1
parents:
diff changeset
14 DECORATION_MARKER = 0x20,
Ritor1
parents:
diff changeset
15 DECORATION_SLOW_LOOP = 0x40,
Ritor1
parents:
diff changeset
16 DECORATION_EMITS_FIRE = 0x80,
Ritor1
parents:
diff changeset
17 DECORATION_SOUND_ON_DAWN = 0x100,
Ritor1
parents:
diff changeset
18 DECORATION_SOUND_ON_DUSK = 0x200,
Ritor1
parents:
diff changeset
19 DECORATION_EMITS_SMOKE = 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 /* 54 */
Ritor1
parents:
diff changeset
25 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
26 struct DecorationDesc
Ritor1
parents:
diff changeset
27 {
Ritor1
parents:
diff changeset
28 char pName[32];
Ritor1
parents:
diff changeset
29 char field_20[32];
Ritor1
parents:
diff changeset
30 __int16 uType;
Ritor1
parents:
diff changeset
31 unsigned __int16 uDecorationHeight;
Ritor1
parents:
diff changeset
32 __int16 uRadius;
Ritor1
parents:
diff changeset
33 __int16 uLightRadius;
Ritor1
parents:
diff changeset
34 unsigned __int16 uSpriteID;
Ritor1
parents:
diff changeset
35 __int16 uFlags;
Ritor1
parents:
diff changeset
36 __int16 uSoundID;
Ritor1
parents:
diff changeset
37 __int16 _pad;
Ritor1
parents:
diff changeset
38 unsigned __int8 uColoredLightRed;
Ritor1
parents:
diff changeset
39 unsigned __int8 uColoredLightGreen;
Ritor1
parents:
diff changeset
40 unsigned __int8 uColoredLightBlue;
Ritor1
parents:
diff changeset
41 char __padding;
Ritor1
parents:
diff changeset
42 };
Ritor1
parents:
diff changeset
43 #pragma pack(pop)
Ritor1
parents:
diff changeset
44
Ritor1
parents:
diff changeset
45 /* 55 */
Ritor1
parents:
diff changeset
46 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
47 struct DecorationList
Ritor1
parents:
diff changeset
48 {
Ritor1
parents:
diff changeset
49 inline DecorationList(): //----- (00458380)
Ritor1
parents:
diff changeset
50 pDecorations(nullptr), uNumDecorations(0)
Ritor1
parents:
diff changeset
51 {}
Ritor1
parents:
diff changeset
52
Ritor1
parents:
diff changeset
53 void ToFile();
Ritor1
parents:
diff changeset
54 void FromFile(void *pSerialized);
Ritor1
parents:
diff changeset
55 bool FromFileTxt(const char *Args);
Ritor1
parents:
diff changeset
56 void InitializeDecorationSprite(unsigned int uDecID);
Ritor1
parents:
diff changeset
57 unsigned __int16 GetDecorIdByName(const char *pName);
Ritor1
parents:
diff changeset
58
Ritor1
parents:
diff changeset
59 unsigned int uNumDecorations;
Ritor1
parents:
diff changeset
60 struct DecorationDesc *pDecorations;
Ritor1
parents:
diff changeset
61 };
Ritor1
parents:
diff changeset
62 #pragma pack(pop)
Ritor1
parents:
diff changeset
63
Ritor1
parents:
diff changeset
64
Ritor1
parents:
diff changeset
65 extern struct DecorationList *pDecorationList;