comparison Level/Decoration.h @ 1512:af57b3b76fe4

Clean and decouple. (1)
author yoctozepto
date Mon, 02 Sep 2013 15:23:09 +0200
parents ee5c98a437d9
children 4055b09160ae
comparison
equal deleted inserted replaced
1511:948191fca433 1512:af57b3b76fe4
1 #pragma once 1 #pragma once
2 2
3 #include "../mm7_data.h" 3 #include <cstdint>
4 4
5 enum LEVEL_DECORATION_FLAGS: uint16 5 #include "../VectorTypes.h"
6
7 enum LEVEL_DECORATION_FLAGS: uint16_t
6 { 8 {
7 LEVEL_DECORATION_TRIGGERED_BY_TOUCH = 0x01, 9 LEVEL_DECORATION_TRIGGERED_BY_TOUCH = 0x01,
8 LEVEL_DECORATION_TRIGGERED_BY_MONSTER = 0x02, 10 LEVEL_DECORATION_TRIGGERED_BY_MONSTER = 0x02,
9 LEVEL_DECORATION_TRIGGERED_BY_OBJECT = 0x04, 11 LEVEL_DECORATION_TRIGGERED_BY_OBJECT = 0x04,
10 LEVEL_DECORATION_VISIBLE_ON_MAP = 0x08, 12 LEVEL_DECORATION_VISIBLE_ON_MAP = 0x08,
20 LevelDecoration(); 22 LevelDecoration();
21 int GetGlobalEvent(); 23 int GetGlobalEvent();
22 bool IsInteractive(); 24 bool IsInteractive();
23 bool IsObeliskChestActive(); 25 bool IsObeliskChestActive();
24 26
25 uint16 uDecorationDescID; 27 uint16_t uDecorationDescID;
26 uint16 uFlags; 28 uint16_t uFlags;
27 Vec3_int_ vPosition; 29 Vec3_int_ vPosition;
28 int32 field_10_y_rot; 30 int32_t field_10_y_rot;
29 uint16 uCog; 31 uint16_t uCog;
30 int16 field_16_event_id; 32 int16_t field_16_event_id;
31 int16 field_18; 33 int16_t field_18;
32 int16 field_1A; 34 int16_t field_1A;
33 int16 _idx_in_stru123; 35 int16_t _idx_in_stru123;
34 int16 field_1E; 36 int16_t field_1E;
35 }; 37 };
36 #pragma pack(pop) 38 #pragma pack(pop)