Table of Contents

Class Motions<TQuaternion, TVec3>

Namespace
Mech3DotNet.Zbd
Assembly
Mech3DotNet.dll

MW or PM motion data.

See Read(string, GameType) for reading a MW or PM motion.zbd file.

public class Motions<TQuaternion, TVec3> : Archive<Motion<TQuaternion, TVec3>>, IWritable where TQuaternion : notnull where TVec3 : notnull

Type Parameters

TQuaternion
TVec3
Inheritance
Archive<Motion<TQuaternion, TVec3>>
Motions<TQuaternion, TVec3>
Implements
Inherited Members

Constructors

Motions(Dictionary<string, Motion<TQuaternion, TVec3>>, List<ArchiveEntry>, GameType)

public Motions(Dictionary<string, Motion<TQuaternion, TVec3>> items, List<ArchiveEntry> entries, GameType gameType)

Parameters

items Dictionary<string, Motion<TQuaternion, TVec3>>
entries List<ArchiveEntry>
gameType GameType

Fields

gameType

public GameType gameType

Field Value

GameType

Methods

Read(string, GameType)

Read a MW or PM motion.zbd file from the specified path.

public static Motions<TQuaternion, TVec3> Read(string path, GameType gameType)

Parameters

path string
gameType GameType

Returns

Motions<TQuaternion, TVec3>

Exceptions

ArgumentException

Thrown if the game type is not MW or PM.

ReadAsDict(string, GameType)

Read a MW or PM motion.zbd file from the specified path, discarding the manifest.

Without the manifest, the data cannot be written again.

public static Dictionary<string, Motion<TQuaternion, TVec3>> ReadAsDict(string path, GameType gameType)

Parameters

path string
gameType GameType

Returns

Dictionary<string, Motion<TQuaternion, TVec3>>

Exceptions

ArgumentException

Thrown if the game type is not MW or PM.

Write(string)

Write a MW or PM motion.zbd file to the specified path.

public void Write(string path)

Parameters

path string

Exceptions

ArgumentException

Thrown if the game type is not MW or PM.