C# Class Alexandria.Engines.DarkSouls.Archive

A collection of files.
Inheritance: Glare.Assets.ArchiveAsset
Afficher le fichier Open project: Burton-Radons/Alexandria Class Usage Examples

Méthodes publiques

Свойство Type Description
DataReader System.IO.BinaryReader
DataStream Stream
ShiftJis System.Text.Encoding

Private Properties

Свойство Type Description
Archive System
Archive System
OpenOtherFile Stream
RemoveSuffix string

Méthodes publiques

Méthode Description
FindRecordById ( int id ) : ArchiveRecord

Find an ArchiveRecord by its id, or return null if not found.

FindRecordByPath ( string path ) : ArchiveRecord

Find an ArchiveRecord by its path, or return null if not found.

HashFilename ( string input ) : int

Produce a hash of the filename used in Dark Souls main archives' record ids.

Private Methods

Méthode Description
Archive ( ) : System
Archive ( AssetManager manager, AssetLoader loader ) : System
OpenOtherFile ( string path, FileManager manager, string suffix, string suffix2 = null ) : Stream
RemoveSuffix ( string path, string suffix, string suffix2 = null ) : string

Method Details

FindRecordById() public méthode

Find an ArchiveRecord by its id, or return null if not found.
public FindRecordById ( int id ) : ArchiveRecord
id int The id of the to search for.
Résultat ArchiveRecord

FindRecordByPath() public méthode

Find an ArchiveRecord by its path, or return null if not found.
public FindRecordByPath ( string path ) : ArchiveRecord
path string The path of the to search for.
Résultat ArchiveRecord

HashFilename() public static méthode

Produce a hash of the filename used in Dark Souls main archives' record ids.
public static HashFilename ( string input ) : int
input string The string to hash.
Résultat int

Property Details

DataReader public_oe property

Get the reader for the archive.
public BinaryReader,System.IO DataReader
Résultat System.IO.BinaryReader

DataStream public_oe property

Get the stream for the archive.
public Stream DataStream
Résultat Stream

ShiftJis public_oe static_oe property

Get the "Shift-JIS" encoding which is used throughout Dark/Demon Souls.
public static Encoding,System.Text ShiftJis
Résultat System.Text.Encoding