Skip to content

Idea: Double index tables #54

@APB9785

Description

@APB9785

When reverse index tables are introduced into ECSx, there might be a desire for functionality where two or more index tables are searched, to get a list of entities which are common to all search results.

For example:

Entity 123 has XCoord 10 and YCoord 5
We want to search a list of all entities found at location {10, 5}
With standard index tables, we need to XCoord.search(10) and YCoord.search(5) and then somehow get the intersection of those two lists
Ideally we would like to have an index table where the key is {10, 5}, so a single search returns exactly the results we want

It could also be worth testing out an intermediate approach where two searches and a MapSet.intersection is used under-the-hood while we work on a more performant implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions