Skip to main content

SCRIPT_WIRE_VERSION

Constant SCRIPT_WIRE_VERSION 

Source
pub const SCRIPT_WIRE_VERSION: u16 = 4; // 4u16
Expand description

The script surface a plugin describes its functions in and answers calls with. Data types, from the engine’s own crate, so a value a plugin builds decodes into the one the script layer routes. Encoding version of the script surface.

Covers ScriptValue, ScriptCommand, FileDialogKind, ScriptTy, ScriptParam, ScriptSig, ScriptNs, ScriptPrelude, and PluginEvent.

Enum variants are append-only. The encoding writes a variant by its index, so inserting or reordering one silently reinterprets every variant after it as a different command. Add new variants at the end of their enum. Any other change to a shape listed above (a renamed or retyped field, a removed variant) bumps this constant.