Skip to content

Allow constraint of one component per system #20

Description

@trustieee

It would be swell if there was an option when registering a component to explicitly state that this will be the only instance of this component registered to the system.

Perhaps:
RegisterComponentAsync(...).AsSingleton()
or
RegisterSingleInstanceComponentAsync(...)

It may be useful to add an extension method for retrieving the only Component from the Components list for a system as well in these cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestA feature that has been requested by a user or maintainer of the engine.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions