pyecs.querying#

class pyecs.querying.Query[source]#
__init__()[source]#
execute(storage_or_world)[source]#

Execute the query on either a ComponentStorage or ECSWorld instance.

Return type:

list[pyecs.common.Types.Entity]

Parameters:

storage_or_world (ComponentStorage | ECSWorld)

with_components(*types)[source]#
Return type:

Query

Parameters:

types (type[TypeAliasForwardRef('pyecs.common.Types.Component')])

without_components(*types)[source]#
Return type:

Query

Parameters:

types (type[TypeAliasForwardRef('pyecs.common.Types.Component')])

Modules

Query()