QueryChunk
Namespace Mc.Scripting · Kind struct (readonly, ref)
public readonly ref struct QueryChunkOne archetype’s worth of query results: entity ids and one column per query term.
Properties
Section titled “Properties”| Member | Description |
|---|---|
int Count { get; } |
Number of entities in the chunk. |
ReadOnlySpan<Entity> Entities { get; } |
The entity ids of the chunk. |
public int Count { get; }Number of entities in the chunk.
Entities
Section titled “Entities”public ReadOnlySpan<Entity> Entities { get; }The entity ids of the chunk.
Methods
Section titled “Methods”| Member | Description |
|---|---|
Span<T> Field<T>(int index) where T : unmanaged |
Column for query term index (the order of the query’s type arguments). |
Field<T>
Section titled “Field<T>”public Span<T> Field<T>(int index) where T : unmanagedColumn for query term index (the order of the query’s type arguments).
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
Returns Span<T>