Table of Contents

Class SkelAttachmentsLegionPlus

Namespace
WoWLib.Formats.M2
Assembly
WoWLib.dll

The SKA1 payload: the attachments that moved out of the model (external sequences' track data lives in the .anim AFSA chunks).

public class SkelAttachmentsLegionPlus : IDisposable
Inheritance
SkelAttachmentsLegionPlus
Implements
Inherited Members

Constructors

SkelAttachmentsLegionPlus()

public SkelAttachmentsLegionPlus()

SkelAttachmentsLegionPlus(SkelAttachmentsLegionPlus)

Copy-construct: a deep copy of other (the C++ copy constructor).

public SkelAttachmentsLegionPlus(SkelAttachmentsLegionPlus other)

Parameters

other SkelAttachmentsLegionPlus

Properties

AttachmentLookupTable

Attachment lookup: attachment id -> index.

public Vector<ushort> AttachmentLookupTable { get; }

Property Value

Vector<ushort>

Attachments

The attachment points.

public Vector<M2AttachmentWotlkPlus> Attachments { get; }

Property Value

Vector<M2AttachmentWotlkPlus>

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public virtual void Dispose()

EnsureValid()

Validate and raise on the first error instead of returning a report — the assert-style face of validate().

public void EnsureValid()

Read(byte[])

Deserialize file bytes into this entity, replacing its contents. Offsets resolve against the given buffer; sequence-gated data is read inline.

public void Read(byte[] data)

Parameters

data byte[]

the file (or containing-chunk payload) bytes

Validate()

Check the logical integrity contracts this file must satisfy to LOAD in the client — companion-array counts, lookup ranges — which write() deliberately never enforces. Call it before writing when you want to know the result will load. A file read from a client and left unmodified reports no errors; warnings mark states real client files ship.

public ValidationReport Validate()

Returns

ValidationReport

every violated contract, in member order

Write()

Serialize this entity in wowlib's canonical layout (an offset format has no byte-perfect round-trip guarantee; a written entity re-reads equal instead).

public byte[] Write()

Returns

byte[]

the file bytes

Operators

operator ==(SkelAttachmentsLegionPlus?, SkelAttachmentsLegionPlus?)

public static bool operator ==(SkelAttachmentsLegionPlus? l, SkelAttachmentsLegionPlus? r)

Parameters

l SkelAttachmentsLegionPlus
r SkelAttachmentsLegionPlus

Returns

bool

operator !=(SkelAttachmentsLegionPlus?, SkelAttachmentsLegionPlus?)

public static bool operator !=(SkelAttachmentsLegionPlus? l, SkelAttachmentsLegionPlus? r)

Parameters

l SkelAttachmentsLegionPlus
r SkelAttachmentsLegionPlus

Returns

bool