C# Class Alexandria.Engines.DarkSouls.Archive

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

Public Properties

Property Type Description
DataReader System.IO.BinaryReader
DataStream Stream
ShiftJis System.Text.Encoding

Private Properties

Property Type Description
Archive System
Archive System
OpenOtherFile Stream
RemoveSuffix string

Public Methods

Method 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

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

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.
return ArchiveRecord

FindRecordByPath() public method

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.
return ArchiveRecord

HashFilename() public static method

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.
return int

Property Details

DataReader public_oe property

Get the reader for the archive.
public BinaryReader,System.IO DataReader
return System.IO.BinaryReader

DataStream public_oe property

Get the stream for the archive.
public Stream DataStream
return 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
return System.Text.Encoding