Skip to main content

check_script

Function check_script 

Source
pub fn check_script(
    source: &str,
    api: Option<&LuaApi>,
    definitions: &LuaDefinitions,
) -> LuaCheckResult
Expand description

This function checks a script.

§Arguments

  • source - Code of the script.
  • api - API of the game. Without it, only the syntax is checked.
  • definitions - Definitions from all the scripts the checked one can see, including itself.

§Returns

The problems and DB keys found in the script.