C# Класс Nexus.Client.ModManagement.Scripting.CSharpScript.CSharpScriptType

Describes the C# script type.
This is the script that allows scripting using the C# language. It is meant to be the most advanced and flexible script.
Наследование: IScriptType
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateEditor ( IList p_lstModFiles ) : IScriptEditor

Creates an editor for the script type.

CreateExecutor ( IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, SynchronizationContext p_scxUIContext ) : IScriptExecutor

Creates an executor that can run the script type.

LoadScript ( string p_strScriptData ) : IScript

Loads the script from the given text representation.

SaveScript ( IScript p_scpScript ) : string

Saves the given script into a text representation.

ValidateScript ( IScript p_scpScript ) : bool

Determines if the given script is valid.

Защищенные методы

Метод Описание
GetScriptFunctionProxy ( IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, SynchronizationContext p_scxUIContext ) : CSharpScriptFunctionProxy

Returns a proxy that implements the functions available to C# scripts.

Описание методов

CreateEditor() публичный Метод

Creates an editor for the script type.
public CreateEditor ( IList p_lstModFiles ) : IScriptEditor
p_lstModFiles IList The list of files if the current mod.
Результат IScriptEditor

CreateExecutor() публичный Метод

Creates an executor that can run the script type.
public CreateExecutor ( IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, SynchronizationContext p_scxUIContext ) : IScriptExecutor
p_modMod IMod The mod being installed.
p_gmdGameMode IGameMode The game mode currently bieng managed.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_igpInstallers InstallerGroup The utility class to use to install the mod items.
p_scxUIContext System.Threading.SynchronizationContext The to use to marshall UI interactions to the UI thread.
Результат IScriptExecutor

GetScriptFunctionProxy() защищенный Метод

Returns a proxy that implements the functions available to C# scripts.
protected GetScriptFunctionProxy ( IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, SynchronizationContext p_scxUIContext ) : CSharpScriptFunctionProxy
p_modMod IMod The mod being installed.
p_gmdGameMode IGameMode The game mode currently bieng managed.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_igpInstallers InstallerGroup The utility class to use to install the mod items.
p_scxUIContext System.Threading.SynchronizationContext The to use to marshall UI interactions to the UI thread.
Результат CSharpScriptFunctionProxy

LoadScript() публичный Метод

Loads the script from the given text representation.
public LoadScript ( string p_strScriptData ) : IScript
p_strScriptData string The text to convert into a script.
Результат IScript

SaveScript() публичный Метод

Saves the given script into a text representation.
public SaveScript ( IScript p_scpScript ) : string
p_scpScript IScript The to save.
Результат string

ValidateScript() публичный Метод

Determines if the given script is valid.
public ValidateScript ( IScript p_scpScript ) : bool
p_scpScript IScript The script to validate.
Результат bool