Struct PapyrusArray
- Namespace
- SkyrimForge.Papyrus
- Assembly
- SkyrimForge.Game.dll
The entries of a Papyrus array, each read as a PapyrusValue.
public readonly ref struct PapyrusArray
- Inherited Members
Remarks
Valid only as long as the PapyrusValue that produced it. It is a ref struct, so code that would retain it past the call, in a lambda, an async method, or a field, does not compile.
Properties
Count
The number of entries. Zero for a None array.
public int Count { get; }
Property Value
this[int]
The entry at index, read the same way the array's own value is.
public PapyrusValue this[int index] { get; }
Parameters
indexint
Property Value
Exceptions
- ArgumentOutOfRangeException
indexis negative or not less than Count.