C# Класс Nexus.Client.Mods.ModFormatRegistry

A registry of all supported mod formats.
Наследование: IModFormatRegistry
Показать файл Открыть проект Примеры использования класса

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

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

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

DiscoverFormats() публичный статический Метод

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.
Результат IModFormatRegistry

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

Gets the specified IModFormat.
public GetFormat ( string p_strModFormatId ) : IModFormat
p_strModFormatId string The id of the to retrieve.
Результат IModFormat

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

The default constructor.
public ModFormatRegistry ( ) : System
Результат System

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

Registers the given IModFormat.
public RegisterFormat ( IModFormat p_mftFormat ) : void
p_mftFormat IModFormat A to register.
Результат void