code wiki / _hdl_build / nx_worldpipe_gate.nx
nx_worldpipe_gate.nx
buildroot/runtime/_hdl_build/nx_worldpipe_gate.nx
about
nx_worldpipe_gate.nx -- ★R5 STAGED PROCGEN GATE: prove the pipeline is REAL, stage by stage, causally.
T1 the six parameter fields exist and are DECORRELATED (independent knobs, not one noise renamed).
T2 biome comes from the parameter VECTOR, not height: find same-height points with different biomes.
T3 the spline is monotone (continents rise from the sea) and EROSION FLATTENS (measured on the relief formula).
T4 the carver is CAUSAL: rivers exist with the stage on, vanish with it off (geometry, not paint).
T5 features RESPECT biome (cacti in desert, spruce in snow, trees in forest/plains) with real counts.
T6 determinism + seed variety (same seed = identical biome map; different seed = materially different).
T7 spawn stage: valid gentle land, deterministic.
T8 evidence: biome/continent map + 3D hero of the staged world -> knowledge/nx_worldpipe.png
license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_png.nxnx_trimesh.nxnx_worldpipe.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 15 | const WG_MAGIC_1657: i64 = 1657 |
| 16 | const WG_MAGIC_2000: i64 = 2000 |
| 17 | const WG_MAGIC_1327: i64 = 1327 |
| 18 | const WG_MAGIC_16000: i64 = 16000 |
| 19 | const WG_MAGIC_8000: i64 = 8000 |
| 20 | const WG_MAGIC_2801: i64 = 2801 |
| 21 | const WG_MAGIC_3271: i64 = 3271 |
| 22 | const WG_MAGIC_7777: i64 = 7777 |
| 23 | const WG_MAGIC_3333: i64 = 3333 |
| 24 | const WG_MAGIC_4000: i64 = 4000 |
| 25 | const WG_MAGIC_1889: i64 = 1889 |
| 26 | const WG_MAGIC_1637: i64 = 1637 |
| 27 | const WG_MAGIC_19000: i64 = 19000 |
| 28 | const WG_MAGIC_9500: i64 = 9500 |
| 29 | const WG_MAGIC_2411: i64 = 2411 |
| 30 | const WG_MAGIC_1024: i64 = 1024 |
| 31 | const WG_MAGIC_65536: i64 = 65536 |
| 32 | const WG_MAGIC_5900: i64 = 5900 |
| 33 | const WG_T9_PAL: i64 = 4096 |
| 34 | const WG_T9_OFF: i64 = 2800 |
| 35 | const WG_T9_SOFF: i64 = 3100 |
| 36 | const WG_T9_SPAN: i64 = 9000 |
| 37 | const WG_T9_HALF: i64 = 4500 |
| 38 | const WG_T9_PA: i64 = 1637 |
| 39 | const WG_T9_PB: i64 = 2411 |
| 45 | const MAPW: i64 = 360 |
| 46 | const HERW: i64 = 560 |
| 47 | const GH: i64 = 360 |
functions
| 41 | func hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 42 | func pn(v: i64) -> i64 { let b: *u8=sys_mmap(32) as *u8; var x: i64=v; var ng: i64=0; if x<0{ng=1;x=0-x} var i: i64=31; if x==0{b[i]=48 as u8;i=i-1} while x>0{b[i]=(48+x%10) as u8;x=x/10;i=i-1} if ng==1{b[i]=45 as u8;i=i-1} sys_write(1,(b as i64+i+1) as *u8,31-i); return 0 } |
| 43 | func clearfb(fb: *i64, n: i64, c: i64) -> i64 { var i: i64=0; while i<n { fb[i]=c; i=i+1 } return 0 } called by 1: main |
| 49 | func main() -> i64 |