nx_entity_store.nx
buildroot/runtime/_hdl_build/nx_entity_store.nx
about
dependencies 1 imports · 37 importers
diagram shows first 10 each side; +0 more imports, +27 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: nx_craft_before_placement_t316.nxnx_entity_store_gate.nxnx_game_actor.nxnx_game_companion.nxnx_imported_body_registry_t40.nxnx_movement_base_engine_t139.nxnx_wasm_craft.nxnx_wasm_craft_body_t137.nxnx_wasm_craft_contact_candidate.nxnx_wasm_craft_dunes_t70.nxnx_wasm_craft_gait_candidate.nxnx_wasm_craft_gait_candidate_t139.nxnx_wasm_craft_imported_body_t41.nxnx_wasm_craft_imported_body_t42.nxnx_wasm_craft_imported_body_t49.nxnx_wasm_craft_imported_t262.nxnx_wasm_craft_inspection_bounds_t181.nxnx_wasm_craft_inspection_distance_t218.nxnx_wasm_craft_inspection_t142.nxnx_wasm_craft_journal_index_t21.nxnx_wasm_craft_journal_index_t21_before_t44.nxnx_wasm_craft_lookup_candidate.nxnx_wasm_craft_move_t72.nxnx_wasm_craft_pre_inspection_t142.nxnx_wasm_craft_recovery_t20.nxnx_wasm_craft_relief_adopt_t143.nxnx_wasm_craft_relief_save_t143.nxnx_wasm_craft_relief_t143.nxnx_wasm_craft_residency_t44.nxnx_wasm_craft_turn_candidate_t139.nxnx_wasm_craft_visitors_canonical_t142.nxnx_wasm_craft_visitors_inspection_t142.nxnx_wasm_craft_visitors_t140.nxnx_wire_crawl_gate.nxnx_wire_diablo2_gate.nxnx_wire_nethack_gate.nxnx_wire_probe.nx
structs
| none |
consts
| 25 | const EN_GENMOD: i64 = 1048576 // 2^20 generations per slot before wrap |
| 26 | const EN_NULL: i64 = 0 // the null handle; a real handle is always > 0 |
| 27 | const EN_HDR: i64 = 4 // cap, ncomp, alive_count, fresh_next |
functions
| 30 | func en_cap(a: *i64) -> i64 { return a[0] } |
| 31 | func en_ncomp(a: *i64) -> i64 { return a[1] } |
| 32 | func en_count(a: *i64) -> i64 { return a[2] } |
| 35 | func en_o_gen(a: *i64) -> i64 { return EN_HDR } |
| 36 | func en_o_alive(a: *i64) -> i64 { return EN_HDR + en_cap(a) } |
| 37 | func en_o_free(a: *i64) -> i64 { return EN_HDR + 2*en_cap(a) } |
| 38 | func en_o_dense(a: *i64) -> i64 { return EN_HDR + 3*en_cap(a) } |
| 39 | func en_o_pos(a: *i64) -> i64 { return EN_HDR + 4*en_cap(a) } |
| 40 | func en_o_comp(a: *i64) -> i64 { return EN_HDR + 5*en_cap(a) } |
| 43 | func en_words(cap: i64, ncomp: i64) -> i64 { return EN_HDR + 5*cap + ncomp*cap + 8 } |
| 44 | func en_bytes(cap: i64, ncomp: i64) -> i64 { return en_words(cap, ncomp) * 8 } |
| 48 | func en_init(a: *i64, cap: i64, ncomp: i64) -> i64 |
| 65 | func en_freelen(a: *i64) -> i64 { return a[en_o_free(a)] } |
| 67 | func en_make_handle(idx: i64, gen: i64) -> i64 { return (idx + 1) * EN_GENMOD + gen } |
| 68 | func en_handle_idx(h: i64) -> i64 { return (h / EN_GENMOD) - 1 } |
| 69 | func en_handle_gen(h: i64) -> i64 { return h % EN_GENMOD } called by 1: en_valid |
| 72 | func en_valid(a: *i64, h: i64) -> i64 called by 25: mainmainba_nearest_wildba_ticken_destroyen_set+19 calls 5: en_handle_idxen_capen_o_aliveen_o_genen_handle_gen |
| 83 | func en_spawn(a: *i64) -> i64 called by 26: bcg_pushbcg_pushvr_moduleba_seed_wildsba_runmain+20 calls 10: en_freelenen_o_freeen_capen_o_aliveen_ncompen_o_comp+4 |
| 108 | func en_destroy(a: *i64, h: i64) -> i64 called by 9: mainmob_tickreplaymainmainac_remove+3 calls 8: en_validen_handle_idxen_o_aliveen_o_genen_o_posen_o_dense+2 |
| 131 | func en_set(a: *i64, h: i64, comp: i64, val: i64) -> i64 |
| 138 | func en_get(a: *i64, h: i64, comp: i64) -> i64 |
| 146 | func en_nth(a: *i64, k: i64) -> i64 |