Skip to content

QueryChunk

Namespace Mc.Scripting · Kind struct (readonly, ref)

public readonly ref struct QueryChunk

One archetype’s worth of query results: entity ids and one column per query term.

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.

public ReadOnlySpan<Entity> Entities { get; }

The entity ids of the chunk.

Member Description
Span<T> Field<T>(int index) where T : unmanaged Column for query term index (the order of the query’s type arguments).
public Span<T> Field<T>(int index) where T : unmanaged

Column for query term index (the order of the query’s type arguments).

Parameters

Name Type Description
index int

Returns Span<T>

Entity