C# Класс Nexus.Client.ModManagement.InstallationLog.InstallLog.ActiveModRegistry

This tracks the mods that have been activated.
Показать файл Открыть проект

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

Метод Описание
ActiveModRegistry ( ) : System

The default constructor.

Clear ( ) : void

Empties the registry.

DeregisterMod ( IMod p_modMod ) : void

Deregisters the given mod.

DeregisterMod ( string p_strModKey ) : void

Deregisters the specified mod.

DoesKeyExist ( string p_strKey ) : bool

Determins if the given key exists in the registry.

GetKey ( IMod p_modMod ) : string

Gets the key associated with the given mod.

GetMod ( string p_strKey ) : IMod

Gets the mod identified by the given key.

IsModHidden ( IMod p_modMod ) : bool

Determines if the given mod is hidden.

IsModRegistered ( IMod p_modMod ) : bool

Determines if the given mod is registered.

RegisterMod ( IMod p_modNewMod, string p_strModKey ) : void

Registers the given mod as being active, and associates it with the given key.

RegisterMod ( IMod p_modNewMod, string p_strModKey, bool p_booHiddenMod ) : void

Registers the given mod as being active, and associates it with the given key.

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

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

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

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

Empties the registry.
public Clear ( ) : void
Результат void

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

Deregisters the given mod.
public DeregisterMod ( IMod p_modMod ) : void
p_modMod IMod The mod to deregister.
Результат void

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

Deregisters the specified mod.
public DeregisterMod ( string p_strModKey ) : void
p_strModKey string The key of the mod to deregister.
Результат void

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

Determins if the given key exists in the registry.
public DoesKeyExist ( string p_strKey ) : bool
p_strKey string The key whose existence is to be determined.
Результат bool

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

Gets the key associated with the given mod.
public GetKey ( IMod p_modMod ) : string
p_modMod IMod The mod whose key is to be retrieved.
Результат string

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

Gets the mod identified by the given key.
public GetMod ( string p_strKey ) : IMod
p_strKey string The key of the mod to be retrieved.
Результат IMod

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

Determines if the given mod is hidden.
public IsModHidden ( IMod p_modMod ) : bool
p_modMod IMod The mod for which it is to be determined if it is registered.
Результат bool

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

Determines if the given mod is registered.
public IsModRegistered ( IMod p_modMod ) : bool
p_modMod IMod The mod for which it is to be determined if it is hidden.
Результат bool

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

Registers the given mod as being active, and associates it with the given key.
public RegisterMod ( IMod p_modNewMod, string p_strModKey ) : void
p_modNewMod IMod The mod to register.
p_strModKey string The key with which to associate the mod.
Результат void

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

Registers the given mod as being active, and associates it with the given key.
public RegisterMod ( IMod p_modNewMod, string p_strModKey, bool p_booHiddenMod ) : void
p_modNewMod IMod The mod to register.
p_strModKey string The key with which to associate the mod.
p_booHiddenMod bool Whether or not the mod should be included in the /// list of active mods.
Результат void