C# 클래스 Nexus.Client.Games.GameModeRegistry

A registry of all game modes whose mods can be managed by the application.
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
DiscoverSupportedGameModes ( EnvironmentInfo p_eifEnvironmentInfo ) : GameModeRegistry

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

GameModeRegistry ( ) : System

The default constructor.

GetGameMode ( string p_strGameModeId ) : IGameModeFactory

Gets the game mode factory registered for the given game mode id.

IsRegistered ( string p_strGameModeId ) : bool

Determines if the specified game mode is in the registry.

LoadInstalledGameModes ( GameModeRegistry p_gmrSupportedGameModes, EnvironmentInfo p_eifEnvironmentInfo ) : GameModeRegistry

Loads the factories for games that have been previously detected as installed.

RegisterGameMode ( IGameModeFactory p_gmfGameModeFactory ) : void

Registers the specified game mode.

메소드 상세

DiscoverSupportedGameModes() 공개 정적인 메소드

Searches for game mode factories in the specified path, and loads any factories that are found into a registry.
public static DiscoverSupportedGameModes ( EnvironmentInfo p_eifEnvironmentInfo ) : GameModeRegistry
p_eifEnvironmentInfo EnvironmentInfo
리턴 GameModeRegistry

GameModeRegistry() 공개 메소드

The default constructor.
public GameModeRegistry ( ) : System
리턴 System

GetGameMode() 공개 메소드

Gets the game mode factory registered for the given game mode id.
public GetGameMode ( string p_strGameModeId ) : IGameModeFactory
p_strGameModeId string The id of the game mode for which to retrieve a factory.
리턴 IGameModeFactory

IsRegistered() 공개 메소드

Determines if the specified game mode is in the registry.
public IsRegistered ( string p_strGameModeId ) : bool
p_strGameModeId string The id of the game mode whose presence in the registry is to be determined.
리턴 bool

LoadInstalledGameModes() 공개 정적인 메소드

Loads the factories for games that have been previously detected as installed.
public static LoadInstalledGameModes ( GameModeRegistry p_gmrSupportedGameModes, EnvironmentInfo p_eifEnvironmentInfo ) : GameModeRegistry
p_gmrSupportedGameModes GameModeRegistry A registry containing the factories for all supported game modes.
p_eifEnvironmentInfo EnvironmentInfo The application's envrionment info.
리턴 GameModeRegistry

RegisterGameMode() 공개 메소드

Registers the specified game mode.
public RegisterGameMode ( IGameModeFactory p_gmfGameModeFactory ) : void
p_gmfGameModeFactory IGameModeFactory The factory for the game mode to register.
리턴 void