Expand description
Wasm bindings for ssruntime.
This module mirrors the C FFI surface in src/ffi/mod.rs 1:1 for JS/TS
Players. POD return types (ss_event_instance_info, ss_effect_event_info)
are exposed as
wasm-bindgen wrapper classes (WebEventInstanceInfo,
WebEffectEventInfo) because wasm-bindgen cannot expose #[repr(C)]
structs by value.
Not exposed:
ss_runtime_set_log_callback, which requires bridging a JSFunctionand ajs-sysdependency.ss_runtime_ssab_schema_version.
Structs§
- SSRuntime
Context - SSRuntime
Effect Slot - JS-friendly wrapper of
EffectSlot. Same conceptual flow as the C FFI: - SSRuntime
Instance Slot - JS-friendly wrapper of
InstanceSlot. Same conceptual flow as the C FFI: - SSRuntime
Resource - WebEffect
Event Info - JS-friendly mirror of
ss_effect_event_info(src/types.rs). - WebEvent
Instance Info - JS-friendly mirror of
ss_event_instance_info(src/types.rs).