C# 클래스 Nexus.Client.PluginManagement.PluginRegistry

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

공개 메소드들

메소드 설명
DiscoverManagedPlugins ( IPluginFactory p_pftFactory, IPluginDiscoverer p_pdvDiscoverer ) : PluginRegistry

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

GetPlugin ( string p_strPluginPath ) : Plugin

Returns the plugin registered with the given path.

IsActivatiblePluginFile ( string p_strPath ) : bool

Determines if the specified file is a plugin that can be activated for the game mode.

PluginRegistry ( IPluginFactory p_pgfPluginFactory ) : System.Collections.Generic

A simple constructor that initializes the object with its dependencies.

RegisterPlugin ( string p_strPluginPath ) : bool

Registers the specified plugin.

UnregisterPlugin ( Plugin p_plgPlugin ) : void

Removes the given plugin from the registry.

UnregisterPlugin ( string p_strPluginPath ) : void

Removes the specified plugin from the registry.

비공개 메소드들

메소드 설명
GetEnlistment ( ) : TransactionEnlistment

Gets an enlistment into the ambient transaction, if one exists.

메소드 상세

DiscoverManagedPlugins() 공개 정적인 메소드

Searches for plugins in the specified path, and loads any plugins that are found into a registry.
public static DiscoverManagedPlugins ( IPluginFactory p_pftFactory, IPluginDiscoverer p_pdvDiscoverer ) : PluginRegistry
p_pftFactory IPluginFactory The factory to use to create s.
p_pdvDiscoverer IPluginDiscoverer The discoverer to use to search for plugins.
리턴 PluginRegistry

GetPlugin() 공개 메소드

Returns the plugin registered with the given path.
public GetPlugin ( string p_strPluginPath ) : Plugin
p_strPluginPath string The path of the plugin to return
리턴 Nexus.Client.Plugins.Plugin

IsActivatiblePluginFile() 공개 메소드

Determines if the specified file is a plugin that can be activated for the game mode.
public IsActivatiblePluginFile ( string p_strPath ) : bool
p_strPath string The path to the file for which it is to be determined if it is a plugin file.
리턴 bool

PluginRegistry() 공개 메소드

A simple constructor that initializes the object with its dependencies.
public PluginRegistry ( IPluginFactory p_pgfPluginFactory ) : System.Collections.Generic
p_pgfPluginFactory IPluginFactory The factory to use to create plugins.
리턴 System.Collections.Generic

RegisterPlugin() 공개 메소드

Registers the specified plugin.
public RegisterPlugin ( string p_strPluginPath ) : bool
p_strPluginPath string The path to the plugin to register.
리턴 bool

UnregisterPlugin() 공개 메소드

Removes the given plugin from the registry.
public UnregisterPlugin ( Plugin p_plgPlugin ) : void
p_plgPlugin Nexus.Client.Plugins.Plugin The plugin to unregister.
리턴 void

UnregisterPlugin() 공개 메소드

Removes the specified plugin from the registry.
public UnregisterPlugin ( string p_strPluginPath ) : void
p_strPluginPath string The path to the plugin to unregister.
리턴 void