Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IEnumerable<Entity> extension implementing IAddRemoveComponent #36

Open
thygrrr opened this issue Nov 6, 2024 · 0 comments
Open

IEnumerable<Entity> extension implementing IAddRemoveComponent #36

thygrrr opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement Improvement on existing implementation
Milestone

Comments

@thygrrr
Copy link
Collaborator

thygrrr commented Nov 6, 2024

It's useful to allow IAddRemoveComponent operations on any IEnumerable<Entity>

This will be achieved with an Extension class.

Advantages

  • just nice, consistent DX
  • immediately unlocks the feature for all such Enumerables
  • enables EntitySpawner.Spawn(int) to return a Span of Entities to perform further operations on.
@thygrrr thygrrr converted this from a draft issue Nov 6, 2024
@thygrrr thygrrr added the enhancement Improvement on existing implementation label Nov 6, 2024
@thygrrr thygrrr moved this to Ready in fennecs ⚡🦊 Nov 6, 2024
@thygrrr thygrrr added this to the 0.6.0 milestone Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement on existing implementation
Projects
Status: Ready
Development

No branches or pull requests

1 participant