code wiki / (root) / nx_imported_body_registry_t40.nx

nx_imported_body_registry_t40.nx

buildroot/runtime/nx_imported_body_registry_t40.nx

7808 B139 linesdepth 3pulls 4 transitivereach 112 importersview sourcekind librarytopic imported
docsdependenciesstructsconstsfunctions

about

Private imported-body component registry. Composes existing identity and contact owners. No render handles, model names, AI policy or implicit anatomical dimensions. Persistence integration remains versioned work; this runtime arena is not the legacy v6 save body.

dependencies 2 imports · 16 importers

nx_entity_store.nx nx_beach_contact_sweep.nx nx_imported_body_registry_t40. nx_game_page_body_t138.nx nx_game_page_imported_body_t45.nx nx_game_page_material_body_t61.nx nx_game_page_workspace_body_t49.nx nx_game_page_workspace_body_t59.nx nx_imported_body_diagnostic_candid nx_imported_body_motion_candidate_ nx_imported_body_page_t262.nx nx_imported_body_page_toggle_t275. nx_imported_body_registry_gate_t40

diagram shows first 10 each side; +0 more imports, +6 more importers in the complete lists below.

imports: nx_entity_store.nxnx_beach_contact_sweep.nx

imported by: nx_game_page_body_t138.nxnx_game_page_imported_body_t45.nxnx_game_page_material_body_t61.nxnx_game_page_workspace_body_t49.nxnx_game_page_workspace_body_t59.nxnx_imported_body_diagnostic_candidate_t363.nxnx_imported_body_motion_candidate_t325.nxnx_imported_body_page_t262.nxnx_imported_body_page_toggle_t275.nxnx_imported_body_registry_gate_t40.nxnx_imported_body_registry_gate_t43.nxnx_wasm_craft_body_t137.nxnx_wasm_craft_imported_body_t41.nxnx_wasm_craft_imported_body_t42.nxnx_wasm_craft_imported_body_t49.nxnx_wasm_craft_imported_t262.nx

structs

34struct ImportedBodyHit

consts

6const IBR_MAGIC:i64=20260910040
7const IBR_VERSION:i64=1
8const IBR_HEADER:i64=4
9const IBR_COMPONENTS:i64=18
10const IBR_DOMAIN:i64=1125899906842624
11const IBR_BAD:i64=0-101
12const IBR_CAPACITY:i64=0-102
13const IBR_CONFLICT:i64=0-103
14const IBR_FUTURE:i64=0-104
15const IBR_SHAPE_AABB:i64=1
16const IBR_ID_HI:i64=0
17const IBR_ID_LO:i64=1
18const IBR_REV:i64=2
19const IBR_SHAPE_REV:i64=3
20const IBR_POSE_REV:i64=4
21const IBR_WORLD_X:i64=5
22const IBR_WORLD_Y:i64=6
23const IBR_WORLD_Z:i64=7
24const IBR_MIN_X:i64=8
25const IBR_MIN_Y:i64=9
26const IBR_MIN_Z:i64=10
27const IBR_MAX_X:i64=11
28const IBR_MAX_Y:i64=12
29const IBR_MAX_Z:i64=13
30const IBR_LAYER:i64=14
31const IBR_MASK:i64=15
32const IBR_ENABLED:i64=16
33const IBR_KIND:i64=17

functions

42func ibr_entities(arena:*i64)->*i64{return ((arena as i64)+IBR_HEADER*8) as *i64}
43func ibr_words(cap:i64)->i64{if cap<1||cap>IBR_DOMAIN/(IBR_COMPONENTS+5){return IBR_BAD};return IBR_HEADER+en_words(cap,IBR_COMPONENTS)}
called by 4: mainmainibr_readyibr_init calls 1: en_words
44func ibr_ready(arena:*i64,words:i64)->i64
54func ibr_init(arena:*i64,words:i64,cap:i64)->i64
62func ibr_domain(v:i64)->i64{if v<=0-IBR_DOMAIN||v>=IBR_DOMAIN{return 0};return 1}
63func ibr_record_valid(record:*i64,words:i64)->i64
called by 1: ibr_upsert calls 1: ibr_domain
73func ibr_find(arena:*i64,hi:i64,lo:i64)->i64
80func ibr_upsert(arena:*i64,words:i64,record:*i64,record_words:i64)->i64
101func ibr_read(arena:*i64,words:i64,handle:i64,record:*i64,record_words:i64)->i64
107func ibr_local_box(entities:*i64,handle:i64,origin_x_q8:i64,origin_z_q8:i64,out:*BeachContactBox)->i64
called by 1: ibr_sweep calls 1: en_get
117func ibr_sweep(arena:*i64,words:i64,body:*BeachContactBox,origin_x_q8:i64,origin_z_q8:i64,axis:i64,delta_q8:i64,moving_layer:i64,moving_mask:i64,skip_handle:i64,scratch:*BeachContactBox,out:*ImportedBodyHit)->i64