Метод | Описание | |
---|---|---|
DoExecute ( IScript p_scpScript ) : bool |
Executes the script.
|
|
ModScriptExecutor ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy p_msfFunctions ) : System |
A simple constructor that initializes the object with the given values.
|
Метод | Описание | |
---|---|---|
CreateSandbox ( IScript p_scpScript ) : |
Creates a sandboxed domain. The sandboxed domain is only given permission to alter the parts of the system that are relevant to mod management for the current game mode. |
Метод | Описание | |
---|---|---|
CurrentDomain_AssemblyResolve ( object sender, |
Handles the AppDomain.AssemblyResolve event. Assemblies that have been load dynamically aren't accessible by assembly name. So, when, for example, this class looks for the assembly containing the ScriptRunner type that was CreateInstanceFromAndUnwrap-ed, the class can't find the type. This handler searches through loaded assemblies and finds the required assembly. |
|
Functions_TaskStarted ( object sender, EventArgs |
Handles the ScriptFunctionProxy.TaskStarted event of script executors. This bubbles the started task to any listeners. |
protected CreateSandbox ( IScript p_scpScript ) : |
||
p_scpScript | IScript | The script we are going to execute. This is required so we can include /// the folder containing the script's script type class in the sandboxes PrivateBinPath. /// We need to do this so that any helper classes and libraries used by the script /// can be found. |
Результат |
public DoExecute ( IScript p_scpScript ) : bool | ||
p_scpScript | IScript | The Mod Script to execute. |
Результат | bool |
public ModScriptExecutor ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy p_msfFunctions ) : System | ||
p_gmdGameMode | IGameMode | The game mode currently being managed. |
p_eifEnvironmentInfo | IEnvironmentInfo | The application's envrionment info. |
p_msfFunctions | Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy | The proxy providing the implementations of the functions available to the mod script script. |
Результат | System |