d2tweaks-rnd2k/include/diablo2/structures/room.h

29 lines
611 B
C
Raw Normal View History

2024-04-17 03:45:38 +00:00
#pragma once
#include <cstdint>
namespace diablo2 {
namespace structures {
struct unit;
struct room//size=0x80
{
//ptRoom +48 0 = spawn new units (monster, objects e.tc), 1 = don't spawn any new units
uint32_t seed1; //+00
uint32_t seed2; //+04
uint8_t uk8[0x1C]; //+08
room* pt_near_rooms; //+24
uint32_t nb_near_rooms; //+28
unit* unit; //+2C
uint8_t uk5[0x44]; //+30
room* pt_next_room; //+74
union {
uint8_t flags; //+78
struct {
uint8_t is_generated : 1;
uint8_t is_generated2 : 1;//???
};
};
};
}
}