Allow resources to be inserted via tuple #16398
Labels
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Macros
Code that generates Rust code
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Whats the problem?
I think it's inconsistent that
System
s andPlugin
s can be inserted via tuple like this, but notResource
s:I mean sure, it's just a quality of life change, but it really annoys me haha
Implementation
If this proposal is green-lit, I want to try implementing it myself. I will probably do something similar to how
Plugin
tuples are handled.I will also update the documentation on
App::insert_resource
to reflect the change, but I dont know what kind of unit tests i should write, or what other documentation should change, so I'm happy to listen to suggestions.The text was updated successfully, but these errors were encountered: