Skip to content

Introduce QuerySingle<Q, F> family of system parameters #15264

@MiniaczQ

Description

@MiniaczQ

What problem does this solve or what need does it fill?

Following #15276 we should expose new system params that benefit from no panics.
Specifically, we should support entities that act as resources.
We can provide system parameters that are equivalents of Query::single family of methods.

What solution would you like?

Add the following system parameters:

  • QuerySingle<Q, F> - valid with exactly one result
  • Option<QuerySingle<Q, F>> - valid with zero or one result

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-FeatureA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions