C# 클래스 Nexus.Client.ModManagement.ModRegistry

A registry of all mods being managed by the mod manager.
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
DiscoverManagedMods ( IModFormatRegistry p_frgFormatRegistry, IModCacheManager p_frgCacheManager, string p_strSearchPath, bool p_booRecurse, IGameMode p_gmdGameMode ) : ModRegistry

Searches for mods in the specified path, and loads any mods that are found into a registry.

GetMod ( string p_strModPath ) : IMod

Returns the mod registered with the given path.

ModRegistry ( IModFormatRegistry p_frgFormatRegistry, IGameMode p_gmdGameMode ) : System

A simple constructor that initializes the object with its dependencies.

RegisterMod ( string p_strModPath ) : IMod

Registers the specified mod.

RegisterMod ( string p_strModPath, IModInfo p_mifTagInfo ) : IMod

Registers the specified mod, tagging it with the given info.

UnregisterMod ( IMod p_modMod ) : void

Removes the specified mod from the registry.

보호된 메소드들

메소드 설명
CreateMod ( string p_strModPath, string p_strCachePath, IGameMode p_gmdGameMode ) : IMod

Creates a mod of the appropriate type from the specified file.

메소드 상세

CreateMod() 보호된 메소드

Creates a mod of the appropriate type from the specified file.
protected CreateMod ( string p_strModPath, string p_strCachePath, IGameMode p_gmdGameMode ) : IMod
p_strModPath string The path to the mod file.
p_strCachePath string The path to the cache file.
p_gmdGameMode IGameMode The game mode for which to create the plugin.
리턴 IMod

DiscoverManagedMods() 공개 정적인 메소드

Searches for mods in the specified path, and loads any mods that are found into a registry.
public static DiscoverManagedMods ( IModFormatRegistry p_frgFormatRegistry, IModCacheManager p_frgCacheManager, string p_strSearchPath, bool p_booRecurse, IGameMode p_gmdGameMode ) : ModRegistry
p_frgFormatRegistry IModFormatRegistry The that contains the list /// of supported s.
p_frgCacheManager IModCacheManager
p_strSearchPath string The path in which to search for mod format assemblies.
p_booRecurse bool Whether to check sub folders of for mods.
p_gmdGameMode IGameMode The game mode for which to discover mods.
리턴 ModRegistry

GetMod() 공개 메소드

Returns the mod registered with the given path.
public GetMod ( string p_strModPath ) : IMod
p_strModPath string The path of the mod to return
리턴 IMod

ModRegistry() 공개 메소드

A simple constructor that initializes the object with its dependencies.
public ModRegistry ( IModFormatRegistry p_frgFormatRegistry, IGameMode p_gmdGameMode ) : System
p_frgFormatRegistry IModFormatRegistry The that contains the list /// of supported s.
p_gmdGameMode IGameMode The for which mods are to be registered.
리턴 System

RegisterMod() 공개 메소드

Registers the specified mod.
public RegisterMod ( string p_strModPath ) : IMod
p_strModPath string The path to the mod to register.
리턴 IMod

RegisterMod() 공개 메소드

Registers the specified mod, tagging it with the given info.
public RegisterMod ( string p_strModPath, IModInfo p_mifTagInfo ) : IMod
p_strModPath string The path to the mod to register.
p_mifTagInfo IModInfo The info with which to tag the mod.
리턴 IMod

UnregisterMod() 공개 메소드

Removes the specified mod from the registry.
public UnregisterMod ( IMod p_modMod ) : void
p_modMod IMod The mod to unregister.
리턴 void