Class ComponentData<T>
Namespace: ValveResourceFormat.IO.ContentFormats.HalfEdgeMesh
Assembly: ValveResourceFormat.dll
Backing store shared by the per component data streams. Allocation is driven by the mesh.
csharp
public abstract class ComponentData<T> : IEnumerable<T>, IEnumerable, IDataStream where T : structType Parameters
T
Type stored per component.
Inheritance
Implements
IEnumerable<T>, IEnumerable, IDataStream
Properties
Count
Number of entries, which matches the component count of the mesh.
csharp
public int Count { get; }Property Value
this[int]
Gets or sets the value at an index. Out of range reads return default and writes are dropped.
csharp
public T this[int index] { get; set; }Property Value
T
Methods
CopyFrom(T[])
Overwrites the leading entries from source, stopping at whichever is shorter.
csharp
public void CopyFrom(T[] source)Parameters
source T[]
Values to copy in.
GetEnumerator()
Returns an enumerator over every entry, including entries of deallocated components.
csharp
public IEnumerator<T> GetEnumerator()Returns
IEnumerator<T>

