Move methods on Children
that mutate to EntityCommands
#15270
Labels
A-ECS
Entities, components, systems, and events
C-Code-Quality
A section of code that is hard to understand or change
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
X-Contentious
There are nontrivial implications that should be thought through
What problem does this solve or what need does it fill?
All of our hierarchy management controls happen through
Command
s, except methods of sorting children for a given entity. These methods should be changed toCommand
s like the rest of the hierarchy management. This might be required when changingChildren
to a relation, anyways.What solution would you like?
Replace the following methods with commands:
Children::swap
Children::sort_by
Children::sort_by_key
Children::sort_by_cached_key
Children::sort_unstable_by
Children::sort_unstable_by_key
Ideally:
The text was updated successfully, but these errors were encountered: