Skip to main content

Module script_engine

Module script_engine 

Source
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§

PatchError
ScriptError

Functions§

evaluate_bool_expression
Evaluates an enable_if expression and returns a boolean result.
run_script_patch
Runs a script patch against the provided input string.
validate_expression
Validates an enable_if expression at load time.
validate_script
Validates a script patch at load time.