C# Class FSO.Files.Formats.DBPF.DBPFFile

The database-packed file (DBPF) is a format used to store data for pretty much all Maxis games after The Sims, including The Sims Online (the first appearance of this format), SimCity 4, The Sims 2, Spore, The Sims 3, and SimCity 2013.
Inheritance: IDisposable
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Свойство Type Description
DateCreated int
DateModified int

Méthodes publiques

Méthode Description
DBPFFile ( ) : System

Constructs a new DBPF instance.

DBPFFile ( string file ) : System

Creates a DBPF instance from a path.

Dispose ( ) : void

Disposes this DBPF instance.

GetEntry ( DBPFEntry entry ) : byte[]

Gets a DBPFEntry's data from this DBPF instance.

GetItemByID ( ulong ID ) : byte[]

Gets an entry from its ID (TypeID + FileID).

GetItemsByType ( DBPFTypeID Type ) : byte[]>>.List

Gets all entries of a specific type.

Read ( Stream stream ) : void

Reads a DBPF archive from a stream.

Method Details

DBPFFile() public méthode

Constructs a new DBPF instance.
public DBPFFile ( ) : System
Résultat System

DBPFFile() public méthode

Creates a DBPF instance from a path.
public DBPFFile ( string file ) : System
file string The path to an DBPF archive.
Résultat System

Dispose() public méthode

Disposes this DBPF instance.
public Dispose ( ) : void
Résultat void

GetEntry() public méthode

Gets a DBPFEntry's data from this DBPF instance.
public GetEntry ( DBPFEntry entry ) : byte[]
entry DBPFEntry Entry to retrieve data for.
Résultat byte[]

GetItemByID() public méthode

Gets an entry from its ID (TypeID + FileID).
public GetItemByID ( ulong ID ) : byte[]
ID ulong The ID of the entry.
Résultat byte[]

GetItemsByType() public méthode

Gets all entries of a specific type.
public GetItemsByType ( DBPFTypeID Type ) : byte[]>>.List
Type DBPFTypeID The Type of the entry.
Résultat byte[]>>.List

Read() public méthode

Reads a DBPF archive from a stream.
public Read ( Stream stream ) : void
stream Stream The stream to read from.
Résultat void

Property Details

DateCreated public_oe property

public int DateCreated
Résultat int

DateModified public_oe property

public int DateModified
Résultat int