C# Класс ALFA.ALFAERFResourceRepository

This class reimplements OEIShared.IO.ERFResourceRepository, however in a fashion that is compatible with the content patcher (files are not kept locked without share delete). It only supports read only access to the ERF.
Наследование: OEIShared.IO.ResourceRepository, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ErfFile OEIShared.IO.ERF.ERFFile

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

Метод Описание
ALFAERFResourceRepository ( string FileName ) : System

Construct a new ERF repository.

CopyResource ( OEIShared Entry ) : OEIShared.IO.IResourceEntry

Create a copy of a resource.

CopyResource ( OEIShared Entry, OEIShared NewName ) : OEIShared.IO.IResourceEntry

Create a copy of a resource.

CreateResource ( OEIShared ResRef, ushort ResType ) : IResourceEntry

Create a new resource.

Dispose ( ) : void

Disposer.

Dispose ( bool Disposing ) : void

Disposer.

PopulateRepository ( ) : void

Populate contents of the repository from the ERF.

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

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

Construct a new ERF repository.
public ALFAERFResourceRepository ( string FileName ) : System
FileName string Supplies the ERF file name.
Результат System

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

Create a copy of a resource.
public CopyResource ( OEIShared Entry ) : OEIShared.IO.IResourceEntry
Entry OEIShared Supplies the resource to copy.
Результат OEIShared.IO.IResourceEntry

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

Create a copy of a resource.
public CopyResource ( OEIShared Entry, OEIShared NewName ) : OEIShared.IO.IResourceEntry
Entry OEIShared Supplies the resource to copy.
NewName OEIShared Supplies the new resource name.
Результат OEIShared.IO.IResourceEntry

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

Create a new resource.
public CreateResource ( OEIShared ResRef, ushort ResType ) : IResourceEntry
ResRef OEIShared Supplies the resource resref.
ResType ushort Supplies the resource type.
Результат IResourceEntry

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

Disposer.
public Dispose ( ) : void
Результат void

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

Disposer.
public Dispose ( bool Disposing ) : void
Disposing bool Supplies true if the object is /// disposing.
Результат void

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

Populate contents of the repository from the ERF.
public PopulateRepository ( ) : void
Результат void

Описание свойств

ErfFile публичное свойство

The ERF file encapsulated by the repository.
public ERFFile,OEIShared.IO.ERF ErfFile
Результат OEIShared.IO.ERF.ERFFile