C# Класс Alexandria.Engines.DarkSouls.Archive

A collection of files.
Наследование: Glare.Assets.ArchiveAsset
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DataReader System.IO.BinaryReader
DataStream Stream
ShiftJis System.Text.Encoding

Private Properties

Свойство Тип Описание
Archive System
Archive System
OpenOtherFile Stream
RemoveSuffix string

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

FindRecordById() публичный метод

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.
Результат ArchiveRecord

FindRecordByPath() публичный метод

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.
Результат ArchiveRecord

HashFilename() публичный статический метод

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.
Результат int

Описание свойств

DataReader публичное свойство

Get the reader for the archive.
public BinaryReader,System.IO DataReader
Результат System.IO.BinaryReader

DataStream публичное свойство

Get the stream for the archive.
public Stream DataStream
Результат Stream

ShiftJis публичное статическое свойство

Get the "Shift-JIS" encoding which is used throughout Dark/Demon Souls.
public static Encoding,System.Text ShiftJis
Результат System.Text.Encoding