Name | Summary |
---|---|
Companion | object Companion |
Name | Summary |
---|---|
prev_ | var prev_: Query? |
query_ | var query_: IntArray |
Name | Summary |
---|---|
eval | |
registerEventListener | fun <T : EventArgs> registerEventListener(eventName: String, listener: (entity: Entity, eventArgs: T) -> Unit): QueryEventListenerManager<T> Registers an event listener for a specific event on entities that match the query. |
with | fun with(componentTypes: IntArray): Query fun with(componentType: Int): Query |
Name | Summary |
---|---|
and | fun and(vararg items: IntArray): IntArray Performs a logical AND operation on multiple queries. |
changed | fun changed(vararg componentTypes: Int): IntArray Creates a query that checks if an entity has a specific component that has changed in the last tick. |
has | fun has(vararg componentTypes: Int): IntArray Creates a query that checks if an entity has a specific components. |
or | fun or(vararg items: IntArray): IntArray Performs a logical OR operation on multiple queries. |
query | fun query(code: IntArray): Query |
where | fun where(initializer: QueryBuilder.() -> Unit): Query DSL for building queries, e.g.: val query = Query.where { has(1, 2, 3) and changed(4, 5) } |