Table of Contents

Class Sounds

Namespace
Mech3DotNet.Zbd
Assembly
Mech3DotNet.dll

Sound data.

See Read(string, GameType) for reading a sounds*.zbd file.

public class Sounds : Archive<byte[]>, IWritable
Inheritance
Sounds
Implements
Inherited Members

Constructors

Sounds(Dictionary<string, byte[]>, List<ArchiveEntry>, GameType)

public Sounds(Dictionary<string, byte[]> items, List<ArchiveEntry> entries, GameType gameType)

Parameters

items Dictionary<string, byte[]>
entries List<ArchiveEntry>
gameType GameType

Fields

gameType

public GameType gameType

Field Value

GameType

Methods

Read(string, GameType)

Read a sounds*.zbd file from the specified path.

public static Sounds Read(string path, GameType gameType)

Parameters

path string
gameType GameType

Returns

Sounds

ReadAsDict(string, GameType)

Read a sounds*.zbd file from the specified path, discarding the manifest.

Without the manifest, the data cannot be written again.

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

Parameters

path string
gameType GameType

Returns

Dictionary<string, byte[]>

Write(string)

Write a sounds*.zbd file to the specified path

public void Write(string path)

Parameters

path string