annotate DecorationList.h @ 110:430786d916d6

6.11.12 SaveLoad
author Ritor1
date Tue, 06 Nov 2012 17:30:24 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 /* 321 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 enum DECORATION_FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 DECORATION_MOVE_THROUGH = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 DECORATION_DONT_DRAW = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 DECORATION_FLICKER_SLOW = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 DECORATION_FICKER_AVERAGE = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 DECORATION_FICKER_FAST = 0x10,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 DECORATION_MARKER = 0x20,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 DECORATION_SLOW_LOOP = 0x40,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 DECORATION_EMITS_FIRE = 0x80,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 DECORATION_SOUND_ON_DAWN = 0x100,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 DECORATION_SOUND_ON_DUSK = 0x200,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 DECORATION_EMITS_SMOKE = 0x400,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 /* 54 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 struct DecorationDesc
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 char pName[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 char field_20[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 __int16 uType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 unsigned __int16 uDecorationHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 __int16 uLightRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 unsigned __int16 uSpriteID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 __int16 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 __int16 uSoundID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 __int16 _pad;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 unsigned __int8 uColoredLightRed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 unsigned __int8 uColoredLightGreen;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 unsigned __int8 uColoredLightBlue;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 char __padding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 /* 55 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 struct DecorationList
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 inline DecorationList(): //----- (00458380)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 pDecorations(nullptr), uNumDecorations(0)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 {}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 void ToFile();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 void FromFile(void *pSerialized);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 bool FromFileTxt(const char *Args);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 void InitializeDecorationSprite(unsigned int uDecID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 unsigned __int16 GetDecorIdByName(const char *pName);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 unsigned int uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 struct DecorationDesc *pDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 extern struct DecorationList *pDecorationList;