xecs.Query#

class xecs.Query[source]#

Bases: Generic[T]

A system parameter providing selective access to component data.

Methods

product_2

Get the cartesian product of component data matching the query.

result

Get the component data matching the query.

Attributes

product_2()[source]#

Get the cartesian product of component data matching the query.

Returns:

Every pair of entities.

Return type:

tuple[T, T]

result()[source]#

Get the component data matching the query.

Returns:

The component data.

Return type:

T