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

CachedQueryWhereBuilder Class

Modifiers: final
Inner builder for CachedQuery expressions within a where block.
This builder provides only has() operations with and/or combinators. It intentionally does NOT have a where method to prevent nested where 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., Enemy.id, Health.id).
Returns
  A query node representing the has check.
Did you find this page helpful?