nx_decl_dungeon_floor.nx
buildroot/runtime/nx_decl_dungeon_floor.nx
about
nx_decl_dungeon_floor.nx -- fourth declarative #tag-style primitive.
license_tier: ORIGINAL
Composes an indoor dungeon-floor layout from one substrate call.
Distinct from outdoor declarators: dungeons are bounded grid-like
structures with rooms + corridors + treasures + traps, no biome,
no sky. Equivalent of `#dungeon_floor <modifier>`.
Per S-class roadmap §A3 -- fourth slice, validates the #tag
pattern scales to non-environment scenes.
dependencies 4 imports · 1 importers
imports: nx_syscalls.nxnx_types.nxnx_tier.nxnx_decl_random_environment.nx
imported by: nx_decl_dungeon_floor_test.nx
structs
| 53 | struct NxDungeonFloor |
consts
| 23 | const NX_MAGIC_1024: i64 = 1024 |
| 26 | const NX_DUNGEON_MOOD_CRYPT: nx_int = 0 // dark, undead-themed |
| 27 | const NX_DUNGEON_MOOD_RUIN: nx_int = 1 // collapsed, overgrown |
| 28 | const NX_DUNGEON_MOOD_FORGE: nx_int = 2 // industrial, hot |
| 29 | const NX_DUNGEON_MOOD_LIBRARY: nx_int = 3 // quiet, archive |
| 30 | const NX_DUNGEON_MOOD_GARDEN: nx_int = 4 // verdant, fey-themed |
| 31 | const NX_DUNGEON_MOOD_REACTOR: nx_int = 5 // sci-fi power core |
| 32 | const NX_DUNGEON_MOOD_LAB: nx_int = 6 // sci-fi research wing |
| 33 | const NX_DUNGEON_MOOD_N: nx_int = 7 |
functions
| 35 | func nx_dungeon_mood_is_valid(m: nx_int) -> nx_int called by 1: main |
| 41 | func nx_dungeon_mood_name(m: nx_int) -> *u8 called by 1: main |
| 72 | func _df_default_mood(modifier: nx_int, seed: nx_int) -> nx_int |
| 87 | func _df_default_grid_width(modifier: nx_int) -> nx_int called by 1: nx_decl_dungeon_floor |
| 93 | func _df_default_grid_height(modifier: nx_int) -> nx_int called by 1: nx_decl_dungeon_floor |
| 100 | func _df_default_room_count(modifier: nx_int, seed: nx_int) -> nx_int |
| 107 | func _df_default_corridor_count(modifier: nx_int, rooms: nx_int) -> nx_int called by 1: nx_decl_dungeon_floor |
| 113 | func _df_default_treasure_count(modifier: nx_int, rooms: nx_int) -> nx_int called by 1: nx_decl_dungeon_floor |
| 121 | func _df_default_trap_count(modifier: nx_int, rooms: nx_int, mood: nx_int) -> nx_int called by 1: nx_decl_dungeon_floor |
| 131 | func _df_default_light_q10(mood: nx_int) -> nx_int called by 1: nx_decl_dungeon_floor |
| 143 | func nx_decl_dungeon_floor(out: *NxDungeonFloor, modifier: nx_int, seed: nx_int) -> nx_int |
| 168 | func nx_df_alloc() -> *NxDungeonFloor |