code wiki / _hdl_build / nx_mw_spawn_probe.nx

nx_mw_spawn_probe.nx

buildroot/runtime/_hdl_build/nx_mw_spawn_probe.nx

2191 B59 linesdepth 2pulls 5 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_mw_spawn_probe.nx -- find a good MineWorld spawn: plains biome, mid height, flat-ish, no trees nearby. Diagnostic only. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_f32_hw.nx nx_wasm_mineworld.nx nx_mw_spawn_probe.nx

imports: nx_syscalls.nxnx_f32_hw.nxnx_wasm_mineworld.nx

imported by: nobody (leaf or entry point)

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

main terrain_h0 mw_o2 mw_h2 biome_of mw_o2 ↻ has_tree shw sys_write spn sys_mmap sys_write ↻

structs

none

consts

none

functions

7func shw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
8func spn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
21func main() -> i64