C# Class Nexus.Client.Games.Grimrock.Scripting.ModScript.GrimrockModScriptInterpreter

Interpets and executes the given Grimrock Mod Script script.
Inheritance: Nexus.Client.ModManagement.Scripting.ModScript.ModScriptInterpreter
显示文件 Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
GrimrockModScriptInterpreter ( Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy p_msfFunctions, string p_strScript ) : Nexus.Client.ModManagement.Scripting.ModScript

A simple construtor that initializes the object with the given values.

Protected Methods

Method Description
CreateInterpreterContext ( Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy p_msfFunctions ) : ModScriptInterpreterContext

Creates the context object that tracks the state of the script being executed.

Method Details

CreateInterpreterContext() protected method

Creates the context object that tracks the state of the script being executed.
protected CreateInterpreterContext ( Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy p_msfFunctions ) : ModScriptInterpreterContext
p_msfFunctions Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy The object that implements the script functions.
return Nexus.Client.ModManagement.Scripting.ModScript.ModScriptInterpreterContext

GrimrockModScriptInterpreter() public method

A simple construtor that initializes the object with the given values.
public GrimrockModScriptInterpreter ( Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy p_msfFunctions, string p_strScript ) : Nexus.Client.ModManagement.Scripting.ModScript
p_msfFunctions Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy The object that implements the script functions.
p_strScript string The script to execute.
return Nexus.Client.ModManagement.Scripting.ModScript