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

A dummy mod that can be used as a placeholder.
Наследование: ObservableObject, IMod
Показать файл Открыть проект

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

Метод Описание
BeginReadOnlyTransaction ( FileUtil p_futFileUtil ) : void

Starts a read-only transaction.

This puts the Mod into read-only mode. Read-only mode can greatly increase the speed at which multiple file are extracted.

DummyMod ( string p_strName, string p_strFileName ) : System

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

DummyMod ( string p_strName, string p_strFileName, System.Version p_verMachineVersion, string p_strHumanReadableVersion, string p_strLastKnownVersion, string p_strInstallDate ) : System

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

EndReadOnlyTransaction ( ) : void

Ends a read-only transaction.

This takes the Mod out of read-only mode. Read-only mode can greatly increase the speed at which multiple file are extracted.

GetFile ( string p_strFile ) : byte[]

Retrieves the specified file from the mod.

GetFileList ( ) : List

Retrieves the list of files in this Mod.

GetFileList ( string p_strFolderPath, bool p_booRecurse ) : List

Retrieves the list of all files in the specified Mod folder.

IsMatchingVersion ( ) : bool

Determines if last known version is the same as the current version.

UpdateInfo ( IModInfo p_mifInfo, bool p_booOverwriteAllValues ) : void

Updates the object's proerties to the values of the given IModInfo.

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

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

Starts a read-only transaction.
This puts the Mod into read-only mode. Read-only mode can greatly increase the speed at which multiple file are extracted.
public BeginReadOnlyTransaction ( FileUtil p_futFileUtil ) : void
p_futFileUtil Nexus.Client.Util.FileUtil
Результат void

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

A simple constructor that initializes the object with the given values.
public DummyMod ( string p_strName, string p_strFileName ) : System
p_strName string The name of the dummy mod.
p_strFileName string The filename of the dummy mod.
Результат System

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

A simple constructor that initializes the object with the given values.
public DummyMod ( string p_strName, string p_strFileName, System.Version p_verMachineVersion, string p_strHumanReadableVersion, string p_strLastKnownVersion, string p_strInstallDate ) : System
p_strName string The name of the dummy mod.
p_strFileName string The filename of the dummy mod.
p_verMachineVersion System.Version The version of the mod.
p_strHumanReadableVersion string The human readable form of the mod's version.
p_strLastKnownVersion string The the last known mod version.
p_strInstallDate string The install date of the mod.
Результат System

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

Ends a read-only transaction.
This takes the Mod out of read-only mode. Read-only mode can greatly increase the speed at which multiple file are extracted.
public EndReadOnlyTransaction ( ) : void
Результат void

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

Retrieves the specified file from the mod.
Thrown if the specified file /// is not in the mod.
public GetFile ( string p_strFile ) : byte[]
p_strFile string The file to retrieve.
Результат byte[]

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

Retrieves the list of files in this Mod.
public GetFileList ( ) : List
Результат List

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

Retrieves the list of all files in the specified Mod folder.
public GetFileList ( string p_strFolderPath, bool p_booRecurse ) : List
p_strFolderPath string The Mod folder whose file list is to be retrieved.
p_booRecurse bool Whether to return files that are in subdirectories of the given directory.
Результат List

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

Determines if last known version is the same as the current version.
public IsMatchingVersion ( ) : bool
Результат bool

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

Updates the object's proerties to the values of the given IModInfo.
public UpdateInfo ( IModInfo p_mifInfo, bool p_booOverwriteAllValues ) : void
p_mifInfo IModInfo The whose values /// are to be used to update this object's properties.
p_booOverwriteAllValues bool Whether to overwrite the current info values, /// or just the empty ones.
Результат void