跳到主要内容
版本:Next

Struct EntityQuery

Namespace: ReadyM.SDK.Server.Entities
Assembly: ReadyM.SDK.Server.dll

Every entity of a shape. How it is walked is decided for you: a shape whose components are all known at compile time is walked by chunk, and anything else by identity. The choice is made by overload resolution, so this type has no GetEnumerator of its own and a foreach binds one of the extensions instead.

public readonly ref struct EntityQuery<T> where T : struct, IArchetypeQueryable

Type Parameters​

T

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods​

InScope(Scope)​

Narrows the query to the entities one scope holds.

public ScopedQuery<T> InScope(Scope scope)

Parameters​

scope Scope

Returns​

ScopedQuery<T>