C# Класс Nexus.Client.Games.DarkSouls2.Scripting.ModScript.DarkSouls2ModScriptFunctionProxy

Implements the functions availabe to the DarkSouls2 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
Показать файл Открыть проект

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

Метод Описание
DarkSouls2ModScriptFunctionProxy ( 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.

DarkSouls2NewerThan ( 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.

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

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

A simple constructor that initializes the object with the given values.
public DarkSouls2ModScriptFunctionProxy ( 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

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

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 DarkSouls2NewerThan ( 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