C# Class 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.
Inheritance: OEIShared.IO.ResourceRepository, IDisposable
Show file Open project: ALandFarAway/ALFA-Base-Resources Class Usage Examples

Public Properties

Property Type Description
ErfFile OEIShared.IO.ERF.ERFFile

Public Methods

Method Description
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.

Method Details

ALFAERFResourceRepository() public method

Construct a new ERF repository.
public ALFAERFResourceRepository ( string FileName ) : System
FileName string Supplies the ERF file name.
return System

CopyResource() public method

Create a copy of a resource.
public CopyResource ( OEIShared Entry ) : OEIShared.IO.IResourceEntry
Entry OEIShared Supplies the resource to copy.
return OEIShared.IO.IResourceEntry

CopyResource() public method

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.
return OEIShared.IO.IResourceEntry

CreateResource() public method

Create a new resource.
public CreateResource ( OEIShared ResRef, ushort ResType ) : IResourceEntry
ResRef OEIShared Supplies the resource resref.
ResType ushort Supplies the resource type.
return IResourceEntry

Dispose() public method

Disposer.
public Dispose ( ) : void
return void

Dispose() public method

Disposer.
public Dispose ( bool Disposing ) : void
Disposing bool Supplies true if the object is /// disposing.
return void

PopulateRepository() public method

Populate contents of the repository from the ERF.
public PopulateRepository ( ) : void
return void

Property Details

ErfFile public property

The ERF file encapsulated by the repository.
public ERFFile,OEIShared.IO.ERF ErfFile
return OEIShared.IO.ERF.ERFFile