doonv / bevy_dev_console

Source-inspired developer console plugin for the Bevy game engine.
Apache License 2.0
112 stars 10 forks source link

Tuple Indexing #13

Closed doonv closed 7 months ago

doonv commented 7 months ago

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

You cannot index specific elements in tuples.

What solution would you like?

Add the ability to index specific elements in tuples.

This is a bit difficult due to Expression::Member only taking in identifiers. We would have to split the String type to support more types of indexing. Bevy Reflect's Access type could help with this, but it will be private until https://github.com/bevyengine/bevy/pull/11029 gets merged. So in the meantime we will have to use our own type.