Open benfrankel opened 2 hours ago
It may be nice to add ChildBuilder::commands
as well. Currently there's only a queue_command
method there, which is insufficient if you want to access e.g. an extension trait or method on Commands
.
Just FYI, My main reason for wanting this is to add extension traits on WorldChildBuilder
.
What problem does this solve or what need does it fill?
Allow
World
access when you only have aWorldChildBuilder
.What solution would you like?
Add
world
andworld_mut
methods toWorldChildBuilder
, returning references to the inner&mut World
. This doesn't have to beunsafe
likeEntityWorldMut::world_mut
, because the latter is only unsafe due to theEntityLocation
stored inEntityWorldMut
that could become invalidated. There is noEntityLocation
stored inWorldChildBuilder
.What alternative(s) have you considered?
None.