Scripting API
Scripting API
ReadOnlyDynamicList<T>
Struct in Abyss.Core, from Abyss.Core.
One entity's list, to read: a view, as DynamicList<T> is.
public readonly ref struct ReadOnlyDynamicList<T> where T : unmanagedType parameters
T: The plain-data struct one item is.
Properties
Count
public int Count { get; }How many items it holds.
Indexers
this[]
public ref readonly T this[int index] { get; }The item at index.
Parameters
index
Exceptions
ArgumentOutOfRangeException: No item is there.
Methods
AsSpan
public ReadOnlySpan<T> AsSpan()The items it holds, as a span.
ToArray
public T[] ToArray()A copy of the items it holds.
GetEnumerator
public ReadOnlySpan<T>.Enumerator GetEnumerator()Walks the items in order.
