C# Class Nexus.Client.Games.Fallout3.Scripting.XmlScript.Fallout3XmlScriptType

Describes the Fallout 3 variant of the XML script type.
Inheritance: Nexus.Client.ModManagement.Scripting.XmlScript.XmlScriptType
Show file Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
CreateConditionStateManager ( IMod p_modMod, IGameMode p_gmdGameMode, IPluginManager p_pmgPluginManager, IEnvironmentInfo p_eifEnvironmentInfo ) : ConditionStateManager

Creates a ConditionStateManager to use when running an XML script.

GetCplParserFactory ( ) : ICplParserFactory

Gets a CPL Parser factory.

GetXmlScriptNodeAdapter ( System.Version p_verXmlScriptVersion ) : IXmlScriptNodeAdapter

The factory method that returns the appropriate IXmlScriptNodeAdapter for the given xml script version.

Protected Methods

Method Description
GetParser ( System.Xml.Linq.XElement p_xelScript ) : IParser

Gets the parser to use to parse the given XML Script.

The given XML Script is only required to extract the script version, which is used to determine which parser should be used.

GetUnparser ( Nexus p_xscScript ) : IUnparser

Gets the unparser to use to create an XML representation of the given XmlScript.

Method Details

CreateConditionStateManager() public method

Creates a ConditionStateManager to use when running an XML script.
public CreateConditionStateManager ( IMod p_modMod, IGameMode p_gmdGameMode, IPluginManager p_pmgPluginManager, IEnvironmentInfo p_eifEnvironmentInfo ) : ConditionStateManager
p_modMod IMod The mod being installed.
p_gmdGameMode IGameMode The game mode currently bieng managed.
p_pmgPluginManager IPluginManager The plugin manager.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
return Nexus.Client.ModManagement.Scripting.XmlScript.ConditionStateManager

GetCplParserFactory() public method

Gets a CPL Parser factory.
public GetCplParserFactory ( ) : ICplParserFactory
return ICplParserFactory

GetParser() protected method

Gets the parser to use to parse the given XML Script.
The given XML Script is only required to extract the script version, which is used to determine which parser should be used.
protected GetParser ( System.Xml.Linq.XElement p_xelScript ) : IParser
p_xelScript System.Xml.Linq.XElement The XML Script to parse.
return IParser

GetUnparser() protected method

Gets the unparser to use to create an XML representation of the given XmlScript.
protected GetUnparser ( Nexus p_xscScript ) : IUnparser
p_xscScript Nexus The to unparse.
return IUnparser

GetXmlScriptNodeAdapter() public method

The factory method that returns the appropriate IXmlScriptNodeAdapter for the given xml script version.
Thrown if no is /// found for the given xml script version.
public GetXmlScriptNodeAdapter ( System.Version p_verXmlScriptVersion ) : IXmlScriptNodeAdapter
p_verXmlScriptVersion System.Version The xml script version for which to create an /// .
return IXmlScriptNodeAdapter