terrain_layout_classes
Global of Himegari Dungeon Meister: the cell G:0xe6ae0, of type int[30], data-table, values {0=blocked_or_boundary, 1=open_area, 2=passage, 3=hidden}.
LAINIT terrain class. Zero cells are rejected by map rendering, occupancy, and pathfinding; ordinary areas, passages, and hidden spaces take distinct DRAWMAP/CALCOCC/MVSEEK paths. Combined with terrain_area_fill_flags, it distinguishes hidden rooms from hidden passages.
OME’s registry gives it with high confidence, from investigation. The base mod himegari-base exports the name, so Lua and an event’s fields can use it.
It depends on 0x26b5, 0xe6ac2.
Record tables
It is a field of the table terrain, as terrain.id.layout_class.
Scripts that use it
The game’s scripts whose instructions read, write or index (take as an array’s base) the cell, with how many of their operands do each, from OME’s script index.
| Script | Reads | Writes | Indexes |
|---|---|---|---|
LAINIT | 0 | 17 | 0 |
FIELD | 0 | 0 | 14 |
DRAWMAP | 0 | 0 | 11 |
CALCOCC | 0 | 0 | 2 |
MVSEEK | 0 | 0 | 2 |
RESETLAND | 0 | 0 | 2 |
SETLAND | 0 | 0 | 2 |
DRAWMINIMAP | 0 | 0 | 1 |
DRAWVOL | 0 | 0 | 1 |
SALLY | 0 | 0 | 1 |
USEMAGIC | 0 | 0 | 1 |