API reference
API reference
Select your platform
No SDKs available
No versions available

CachedQueryWhereBuilder Class

Modifiers: final
Inner builder for CachedQuery expressions within a <code>where</code> block.
This builder provides only <code>has()</code> operations with <code>and</code>/<code>or</code> combinators. It intentionally does NOT have a <code>where</code> method to prevent nested <code>where</code> blocks.

Signature

class CachedQueryWhereBuilder

Constructors

CachedQueryWhereBuilder ()
Signature
constructor()

Functions

has ( componentIds )
Creates a query node that matches entities with all specified components.
Signature
fun has(vararg componentIds: Int): CachedQueryNode
Parameters
componentIds: Int
  The component IDs to check for (e.g., <code>Enemy.id</code>, <code>Health.id</code>).
Returns
  A query node representing the <code>has</code> check.
Did you find this page helpful?