Skip to main content

Module script

Module script 

Source
Expand description

Script compile entry: automation source to the stored bytecode.

compile_script is the one script compiler. It compiles in Script mode against the entity-script surface the trigger runner links, and backs nms --compile and the save paths create_script and update_script_source. rpc owns the compile-then-store step because server cannot depend on it; the server functions take source and bytecode together.

Enums§

ScriptError

Functions§

compile_script
Compiles source as an automation script, returning the wasm bytes.
create_script
Compiles source and stores it with its bytecode as a new script.
update_script_source
Recompiles source and replaces the script’s source and bytecode together.