C# Class Nexus.Client.Mods.ModFormatRegistry

A registry of all supported mod formats.
Inheritance: IModFormatRegistry
ファイルを表示 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
DiscoverFormats ( IModCacheManager p_mcmModCacheManager, IScriptTypeRegistry p_stgScriptTypeRegistry, string p_strSearchPath ) : IModFormatRegistry

Searches for mod format assemblies in the specified path, and loads any mod formats that are found into a registry.

A mod format is loaded if the class implements IModFormat and is not abstract. Once loaded, the format is added to the registry.

GetFormat ( string p_strModFormatId ) : IModFormat

Gets the specified IModFormat.

ModFormatRegistry ( ) : System

The default constructor.

RegisterFormat ( IModFormat p_mftFormat ) : void

Registers the given IModFormat.

Method Details

DiscoverFormats() public static method

Searches for mod format assemblies in the specified path, and loads any mod formats that are found into a registry.
A mod format is loaded if the class implements IModFormat and is not abstract. Once loaded, the format is added to the registry.
public static DiscoverFormats ( IModCacheManager p_mcmModCacheManager, IScriptTypeRegistry p_stgScriptTypeRegistry, string p_strSearchPath ) : IModFormatRegistry
p_mcmModCacheManager IModCacheManager The manager being used to manage mod caches.
p_stgScriptTypeRegistry IScriptTypeRegistry The registry listing the supported script types.
p_strSearchPath string The path in which to search for mod format assemblies.
return IModFormatRegistry

GetFormat() public method

Gets the specified IModFormat.
public GetFormat ( string p_strModFormatId ) : IModFormat
p_strModFormatId string The id of the to retrieve.
return IModFormat

ModFormatRegistry() public method

The default constructor.
public ModFormatRegistry ( ) : System
return System

RegisterFormat() public method

Registers the given IModFormat.
public RegisterFormat ( IModFormat p_mftFormat ) : void
p_mftFormat IModFormat A to register.
return void