Skip to content

Better type inference for Query-based effects #96

@Trouv

Description

@Trouv

The Query-based effects like ComponentsSet- and EntityComponentsSet- are very generic, allowing for filters and extra query data to be specified. However, actually using these features is somewhat annoying, requiring the user to specify them in the constructor call: https://github.com/Trouv/bevy_pipe_affect/blob/main/examples/sokoban/animate.rs#L13

Even specifying them in the closure, a more readable option IMO, doesn't resolve the issue because of some lifetime difference between the outer generic and inner closure parameter.

This issue is for improving this situation... somehow. Need to look into it more for a proper recommendation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-EffectsArea - concerning effect types.C-FeatureCategory - making something new possible.D-ModestDifficulty - new features, refactors, and challenging bug fixes.S-Ready-For-ImplementationStatus: this issue is ready for someone to pick it up and open a PR!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions