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
Mostrar archivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
DateCreated int
DateModified int

Public Methods

Method 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 method

Constructs a new DBPF instance.
public DBPFFile ( ) : System
return System

DBPFFile() public method

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

Dispose() public method

Disposes this DBPF instance.
public Dispose ( ) : void
return void

GetEntry() public method

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

GetItemByID() public method

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

GetItemsByType() public method

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

Read() public method

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

Property Details

DateCreated public_oe property

public int DateCreated
return int

DateModified public_oe property

public int DateModified
return int