code wiki / (root) / nx_indoorgen.nx

nx_indoorgen.nx

buildroot/runtime/nx_indoorgen.nx

3764 B87 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic indoorgen
docsdependenciesstructsconstsfunctions

about

nx_indoorgen.nx -- CLI: solve every shipped room archetype x variant by constraint (GR6, the Infinigen 2.0 indoor expansion) and emit the engine data table the wasm worlds import. nx_indoorgen [outpath] (default buildroot/runtime/nx_indoorgen_data.nx, nishihost cwd) Every receipt is ANNOUNCED (arch/var/salt/rows, then wrote= of=) -- absence must be visible in normal output, not only in failure. Stage+rename ship, size read back from the landed file. Exit 0 EMITTED / 4 a variant or the emit REFUSED (named) / 1 io / 2 usage never (argv optional). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_part_solver_lib.nx nx_indoorgen_lib.nx nx_indoorgen.nx

imports: nx_syscalls.nxnx_part_solver_lib.nxnx_indoorgen_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ig_solve_salted ig_room_solve ig_reset sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable nxa_dump_sizes ig_dims ig_nparts ig_ws ig_wn ig_part ig_mkpart ig_hash ig_pname ig_ws ↻ ig_wn ↻ ps_load ps_reset sys_mmap ↻ sys_mmap ↻ ps_ntok ps_tokeq ps_slen ps_err sys_write ↻ ps_slen ↻ ps_name ps_toknum ps_tokpart

structs

none

consts

12const IGC_OUT_CAP: i64 = 32768
13const IGC_PATH_CAP: i64 = 512
14const IGC_MODE_0644: i64 = 420

functions

16func igc_puts(s: *u8) -> i64 { sys_write(1, s, ig_slen(s)); return 0 }
called by 1: main calls 2: sys_writeig_slen
17func igc_pn(v: i64) -> i64
called by 1: main calls 3: sys_mmapig_wnsys_write
24func main(argc: i64, argv: *i64) -> i64