C# Класс Nexus.Client.Games.StateOfDecay.StateOfDecayGameMode

Provides information required for the program to manage StateOfDecay's mods.
Наследование: GameModeBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CheckSecondaryUninstall ( string p_strFileName ) : bool
GetActivePluginLogSerializer ( IPluginOrderLog p_polPluginOrderLog ) : IActivePluginLogSerializer

Gets the serailizer that serializes and deserializes the list of active plugins for this game mode.

GetGameSpecificValueInstaller ( IMod p_modMod, IInstallLog p_ilgInstallLog, TxFileManager p_tfmFileManager, FileUtil p_futFileUtility, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : IGameSpecificValueInstaller

Gets the installer to use to install game specific values.

GetGameSpecificValueUpgradeInstaller ( IMod p_modMod, IInstallLog p_ilgInstallLog, TxFileManager p_tfmFileManager, FileUtil p_futFileUtility, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : IGameSpecificValueInstaller

Gets the installer to use to upgrade game specific values.

GetModFormatAdjustedPath ( IModFormat p_mftModFormat, string p_strPath ) : string

Adjusts the given path to be relative to the installation path of the game mode.

This is basically a hack to allow older FOMod/OMods to work. Older FOMods assumed the installation path of Fallout games to be <games>/data, but this new manager specifies the installation path to be <games>. This breaks the older FOMods, so this method can detect the older FOMods (or other mod formats that needs massaging), and adjusts the given path to be relative to the new instaalation path to make things work.

GetModFormatAdjustedPath ( IModFormat p_mftModFormat, string p_strPath, IMod p_modMod ) : string
GetPluginDiscoverer ( ) : IPluginDiscoverer

Gets the discoverer to use to find the plugins managed by this game mode.

GetPluginFactory ( ) : IPluginFactory

Gets the factory that builds plugins for this game mode.

GetPluginOrderLogSerializer ( ) : IPluginOrderLogSerializer

Gets the serializer that serializes and deserializes the plugin order for this game mode.

GetPluginOrderValidator ( ) : IPluginOrderValidator

Gets the object that validates plugin order for this game mode.

GetUpdaters ( ) : IEnumerable

Gets the updaters used by the game mode.

StateOfDecayGameMode ( IEnvironmentInfo p_eifEnvironmentInfo, FileUtil p_futFileUtility ) : System

A simple constructor that initializes the object with the given values.

Защищенные методы

Метод Описание
CreateGameModeDescriptor ( ) : IGameModeDescriptor

Creates a game mode descriptor for the current game mode.

Dispose ( bool p_booDisposing ) : void

Disposes of the unamanged resources.

Приватные методы

Метод Описание
DoesContentFileExist ( String s ) : bool
LoadModNameInternal ( IMod p_modMod ) : string

Loads the mod descriptor (content.xml) from an IMod.

NeedsPathAdjustForContentXml ( IMod p_modMod ) : bool

Checks a mod if it needs a path adjust. Mods need path adjusts if they either are not exactly one folder deep. Also more than one content.xml is not allowed in one package. Ex: ZIP/ Mod1/ content.xml Wrong: ZIP/ Mod1/ XYZ/ content.xml

getAdjustedModPath ( String p_strPath ) : String
validPathForModifications ( String p_strPath ) : bool

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

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

public CheckSecondaryUninstall ( string p_strFileName ) : bool
p_strFileName string
Результат bool

CreateGameModeDescriptor() защищенный Метод

Creates a game mode descriptor for the current game mode.
protected CreateGameModeDescriptor ( ) : IGameModeDescriptor
Результат IGameModeDescriptor

Dispose() защищенный Метод

Disposes of the unamanged resources.
protected Dispose ( bool p_booDisposing ) : void
p_booDisposing bool Whether the method is being called from the method.
Результат void

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

Gets the serailizer that serializes and deserializes the list of active plugins for this game mode.
public GetActivePluginLogSerializer ( IPluginOrderLog p_polPluginOrderLog ) : IActivePluginLogSerializer
p_polPluginOrderLog IPluginOrderLog The tracking plugin order for the current game mode.
Результат IActivePluginLogSerializer

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

Gets the installer to use to install game specific values.
public GetGameSpecificValueInstaller ( IMod p_modMod, IInstallLog p_ilgInstallLog, TxFileManager p_tfmFileManager, FileUtil p_futFileUtility, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : IGameSpecificValueInstaller
p_modMod IMod The mod being installed.
p_ilgInstallLog IInstallLog The install log to use to log the installation of the game specific values.
p_tfmFileManager ChinhDo.Transactions.TxFileManager The transactional file manager to use to interact with the file system.
p_futFileUtility Nexus.Client.Util.FileUtil The file utility class.
p_dlgOverwriteConfirmationDelegate ConfirmItemOverwriteDelegate The method to call in order to confirm an overwrite.
Результат IGameSpecificValueInstaller

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

Gets the installer to use to upgrade game specific values.
public GetGameSpecificValueUpgradeInstaller ( IMod p_modMod, IInstallLog p_ilgInstallLog, TxFileManager p_tfmFileManager, FileUtil p_futFileUtility, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : IGameSpecificValueInstaller
p_modMod IMod The mod being upgraded.
p_ilgInstallLog IInstallLog The install log to use to log the installation of the game specific values.
p_tfmFileManager ChinhDo.Transactions.TxFileManager The transactional file manager to use to interact with the file system.
p_futFileUtility Nexus.Client.Util.FileUtil The file utility class.
p_dlgOverwriteConfirmationDelegate ConfirmItemOverwriteDelegate The method to call in order to confirm an overwrite.
Результат IGameSpecificValueInstaller

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

Adjusts the given path to be relative to the installation path of the game mode.
This is basically a hack to allow older FOMod/OMods to work. Older FOMods assumed the installation path of Fallout games to be <games>/data, but this new manager specifies the installation path to be <games>. This breaks the older FOMods, so this method can detect the older FOMods (or other mod formats that needs massaging), and adjusts the given path to be relative to the new instaalation path to make things work.
public GetModFormatAdjustedPath ( IModFormat p_mftModFormat, string p_strPath ) : string
p_mftModFormat IModFormat The mod format for which to adjust the path.
p_strPath string The path to adjust
Результат string

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

public GetModFormatAdjustedPath ( IModFormat p_mftModFormat, string p_strPath, IMod p_modMod ) : string
p_mftModFormat IModFormat
p_strPath string
p_modMod IMod
Результат string

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

Gets the discoverer to use to find the plugins managed by this game mode.
public GetPluginDiscoverer ( ) : IPluginDiscoverer
Результат IPluginDiscoverer

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

Gets the factory that builds plugins for this game mode.
public GetPluginFactory ( ) : IPluginFactory
Результат IPluginFactory

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

Gets the serializer that serializes and deserializes the plugin order for this game mode.
public GetPluginOrderLogSerializer ( ) : IPluginOrderLogSerializer
Результат IPluginOrderLogSerializer

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

Gets the object that validates plugin order for this game mode.
public GetPluginOrderValidator ( ) : IPluginOrderValidator
Результат IPluginOrderValidator

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

Gets the updaters used by the game mode.
public GetUpdaters ( ) : IEnumerable
Результат IEnumerable

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

A simple constructor that initializes the object with the given values.
public StateOfDecayGameMode ( IEnvironmentInfo p_eifEnvironmentInfo, FileUtil p_futFileUtility ) : System
p_eifEnvironmentInfo IEnvironmentInfo The application's environment info.
p_futFileUtility Nexus.Client.Util.FileUtil The file utility class to be used by the game mode.
Результат System