Skip to content

Initiative: Custom query paramtersΒ #105

@krispya

Description

@krispya

The goal is to enable users to create their own query parameters and support extending query expressiveness through the ecosystem. For example, you should be able to use a spatial hash map to get all nearby entities with a single query parameter.

const player = world.queryFirst(IsPlayer)!
const nearbyEntities = world.query(NearBy(player, { radius: 10 }))

Which can be shortened even further with named entities.

This will require clarifying query concepts and probably replacing the idea of a "query modifier" with something more domain appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions