code wiki / (root) / nx_multi_bundle.nx

nx_multi_bundle.nx

buildroot/runtime/nx_multi_bundle.nx

3041 B76 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind librarytopic multi
docsdependenciesstructsconstsfunctions

about

nx_multi_bundle.nx -- N-character measurement holder built on N v7_bundles. Per the multi-character cardinal: existing 28 detectors run per-character unchanged. This primitive just stores N copies of nx_v7_bundle in a flat array with index accessors. No detector rewrite needed — caller iterates over characters and runs the same detector on each character's bundle. Layout: flat-array of (NX_V7_BUNDLE_FIELDS * N) i64 + header (count). header: bundles[0] = character_count then character i's bundle starts at offset HEADER + i * NX_V7_BUNDLE_FIELDS.

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_v7_bundle.nx nx_multi_bundle.nx nx_multi_pair_test.nx

imports: nx_syscalls.nxnx_v7_bundle.nx

imported by: nx_multi_pair_test.nx

structs

none

consts

21const NX_MULTI_MAX_CHARS: i64 = 6 // D&D-party scale
22const NX_MULTI_HEADER: i64 = 1 // 1 slot for character_count

functions

25func nx_multi_bundle_alloc(max_chars: i64) -> *i64
called by 1: main calls 1: sys_mmap
36func nx_multi_bundle_set_count(multi: *i64, n: i64) -> i64
called by 1: main
43func nx_multi_bundle_count(multi: *i64) -> i64
called by 1: main
49func nx_multi_bundle_char(multi: *i64, i: i64) -> *i64
57func nx_multi_bundle_set_face(multi: *i64, char_i: i64,
64func nx_multi_bundle_set_torso(multi: *i64, char_i: i64,
71func nx_multi_bundle_set_eye(multi: *i64, char_i: i64,