Expand description
Encapsulates all Rhai usage for the modding system.
This module provides a sandboxed Rhai engine for evaluating enable_if
expressions, running script patches, and interpolating strings. It
ensures that all evaluations are bounded, safe, and use the same
parameter binding rules.
Enums§
Functions§
- evaluate_
bool_ expression - Evaluates an
enable_ifexpression and returns a boolean result. - run_
script_ patch - Runs a script patch against the provided input string.
- validate_
expression - Validates an
enable_ifexpression at load time. - validate_
script - Validates a script patch at load time.