Table of Contents

Class Attachment

Namespace
ValveResourceFormat.ResourceTypes.ModelData.Attachments
Assembly
ValveResourceFormat.dll

Represents an attachment point on a model with associated influences.

public class Attachment : IEnumerable<Attachment.Influence>, IEnumerable

Inheritance

Implements

Inherited Members

Constructors

Attachment(KVObject)

Initializes a new instance of the ValveResourceFormat.ResourceTypes.ModelData.Attachments.Attachment class from ValveResourceFormat.Serialization.KeyValues.KVObject data.

public Attachment(KVObject attachmentData)

Parameters

attachmentData KVObject

The ValveResourceFormat.Serialization.KeyValues.KVObject containing attachment information.

Properties

IgnoreRotation

Gets a value indicating whether rotation should be ignored for this attachment.

public bool IgnoreRotation { get; init; }

Property Value

bool

Length

Gets the number of influences in this attachment.

public int Length { get; }

Property Value

int

Name

Gets the name of the attachment.

public string Name { get; init; }

Property Value

string

this[int]

Gets the influence at the specified index.

public Attachment.Influence this[int i] { get; }

Property Value

Attachment.Influence

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<Attachment.Influence> GetEnumerator()

Returns

IEnumerator<Attachment.Influence>

An enumerator that can be used to iterate through the collection.