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
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
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