code wiki / _hdl_build / nx_wasm_mineworld_mp_gate.nx

nx_wasm_mineworld_mp_gate.nx

buildroot/runtime/_hdl_build/nx_wasm_mineworld_mp_gate.nx

6687 B144 linesdepth 4pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic wasm
docsdependenciesstructsconstsfunctions

about

nx_wasm_mineworld_mp_gate.nx -- NATIVE gate for MineWorld MULTIPLAYER (GTA-online rung 1): peer avatars + the FULL netstate/relay round-trip, composing the PROVEN pets stack (nx_pets_netstate frames + nx_room_relay rr_* + nx_mp_relay roster serialization = exactly what nx_mp_serve runs live). T1 AVATAR RENDER: a set peer changes the frame; peers_clear restores it byte-identical. T2 RELAY ROUND-TRIP: A+B post packed frames into room 42; A's roster = exactly B's record; unpack == posted. T3 INGEST->RENDER: the roster body fed through net_ingest_roster_at -> peer table == B -> avatar visible (frame differs; PNG knowledge/nx_mineworld_mp.png for the eyeball). T4 LIAR-KILL: corrupt magic -> frame REJECTED, 0 peers, frame back to baseline. T5 NEGATIVE-COORD round-trip: an infinite-world west-of-origin position survives pack->relay->unpack exact. license_tier: ORIGINAL expect_exit: 0

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_f32_hw.nx nx_png.nx nx_wasm_mineworld.nx nx_mp_relay.nx nx_wasm_mineworld_mp_gate.nx

imports: nx_syscalls.nxnx_f32_hw.nxnx_png.nxnx_wasm_mineworld.nxnx_mp_relay.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap mem_bytes terrain_h0 mw_o2 mw_h2 rend terrain_h0 ↻ f32_div f32_of build_R m4_roty m4_identity f32_of ↻ f32_neg fratio f32_div ↻ f32_of ↻ f32_neg ↻ m4_rotx m4_identity ↻ f32_neg ↻ m4_mul f32_of ↻ f32_add f32_mul render_at ensure_pack blk_ptr pack_default_at blk_ptr ↻ blk_set blk_ptr ↻ rgb f32_of ↻ m4_vec4 f32_of ↻ f32_add ↻ f32_mul ↻ f32_int

structs

none

consts

none

functions

17func hw(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
18func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
30func fbsum(base: i64) -> i64
called by 1: main calls 3: fb_offwwhh
37func rend(base: i64, cgx: i64, cgz: i64) -> i64
50func main() -> i64