Table of Contents

Class ReaderArchive

Namespace
Mech3DotNet.Zbd
Assembly
Mech3DotNet.dll

Reader archive base.

Use ReaderArchiveGeneric or a game-specific reader archive with parsing convenience functions.

public abstract class ReaderArchive : Archive<ReaderValue>
Inheritance
ReaderArchive
Derived
Inherited Members

Constructors

ReaderArchive(Dictionary<string, ReaderValue>, List<ArchiveEntry>)

public ReaderArchive(Dictionary<string, ReaderValue> items, List<ArchiveEntry> entries)

Parameters

items Dictionary<string, ReaderValue>
entries List<ArchiveEntry>

Methods

ReadAsDict(string, GameType)

Read reader data, discarding entry information.

Without entry information, the data cannot be written again.

public static Dictionary<string, ReaderValue> ReadAsDict(string path, GameType gameType)

Parameters

path string
gameType GameType

Returns

Dictionary<string, ReaderValue>

ReadAsJson(string, GameType)

Read reader data as JSON, discarding entry information.

Without entry information, the data cannot be written again.

public static Dictionary<string, byte[]> ReadAsJson(string path, GameType gameType)

Parameters

path string
gameType GameType

Returns

Dictionary<string, byte[]>

ReadRaw(string, GameType, out byte[])

protected static Dictionary<string, ReaderValue> ReadRaw(string path, GameType gameType, out byte[] manifest_data)

Parameters

path string
gameType GameType
manifest_data byte[]

Returns

Dictionary<string, ReaderValue>

WriteRaw(string, GameType)

protected void WriteRaw(string path, GameType gameType)

Parameters

path string
gameType GameType