C# Класс Nexus.Client.Games.DragonAge2.Scripting.ModScript.DragonAge2ModScriptFunctionProxy

Implements the functions availabe to the Dragon Age 2 variant of Mod Script scripts.
The proxy allows sandboxed scripts to call functions that can perform actions outside of the sandbox. All values in Mod Script are strings. Thus, all parameters to the functions are strings. If they represent another datatype, the functions must convert the values before using them. There are a few exceptions, where some methods accept non-string parameters. This is becuase these methods are called by the interpreter, and not from the interpreted code.
Наследование: Nexus.Client.ModManagement.Scripting.ModScript.ModScriptFunctionProxy
Показать файл Открыть проект

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

Метод Описание
DragonAge2ModScriptFunctionProxy ( IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, ModScriptUIUtil p_uipUIProxy ) : System

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

DragonAge2NewerThan ( string p_strGameVersion ) : bool

Determines if the current game version is greater than the given version.

This is an alis for ModScriptFunctionProxy.GameNewerThan(string). It exists to maintain compatibility with old Mod Scripts.

GetScriptExtenderVersion ( ) : System.Version

Gets the version of the script extender that is installed.

ScriptExtenderNewerThan ( string p_strGameVersion ) : bool

Determines if the installed script extender version is greater than the given version.

ScriptExtenderPresent ( ) : bool

Determines if the script extender is installed.

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

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

A simple constructor that initializes the object with the given values.
public DragonAge2ModScriptFunctionProxy ( IMod p_modMod, IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, InstallerGroup p_igpInstallers, ModScriptUIUtil p_uipUIProxy ) : System
p_modMod IMod The mod for which the script is running.
p_gmdGameMode IGameMode The game mode currently being managed.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_igpInstallers Nexus.Client.ModManagement.InstallerGroup The utility class to use to install the mod items.
p_uipUIProxy Nexus.Client.ModManagement.Scripting.ModScript.ModScriptUIUtil The UI manager to use to interact with UI elements.
Результат System

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

Determines if the current game version is greater than the given version.
This is an alis for ModScriptFunctionProxy.GameNewerThan(string). It exists to maintain compatibility with old Mod Scripts.
public DragonAge2NewerThan ( string p_strGameVersion ) : bool
p_strGameVersion string The version to which to compare the game's version.
Результат bool

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

Gets the version of the script extender that is installed.
public GetScriptExtenderVersion ( ) : System.Version
Результат System.Version

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

Determines if the installed script extender version is greater than the given version.
public ScriptExtenderNewerThan ( string p_strGameVersion ) : bool
p_strGameVersion string The version to which to compare the script extender's version.
Результат bool

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

Determines if the script extender is installed.
public ScriptExtenderPresent ( ) : bool
Результат bool