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
Afficher le fichier Open project: ALandFarAway/ALFA-Base-Resources Class Usage Examples

Méthodes publiques

Свойство Type Description
ErfFile OEIShared.IO.ERF.ERFFile

Méthodes publiques

Méthode 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 méthode

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

CopyResource() public méthode

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

CopyResource() public méthode

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.
Résultat OEIShared.IO.IResourceEntry

CreateResource() public méthode

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

Dispose() public méthode

Disposer.
public Dispose ( ) : void
Résultat void

Dispose() public méthode

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

PopulateRepository() public méthode

Populate contents of the repository from the ERF.
public PopulateRepository ( ) : void
Résultat void

Property Details

ErfFile public_oe property

The ERF file encapsulated by the repository.
public ERFFile,OEIShared.IO.ERF ErfFile
Résultat OEIShared.IO.ERF.ERFFile