bevy/examples/ecs
Carter Anderson 81b53d15d4 Make Commands and World apis consistent (#1703)
Resolves #1253 #1562

This makes the Commands apis consistent with World apis. This moves to a "type state" pattern (like World) where the "current entity" is stored in an `EntityCommands` builder.

In general this tends to cuts down on indentation and line count. It comes at the cost of needing to type `commands` more and adding more semicolons to terminate expressions.

I also added `spawn_bundle` to Commands because this is a common enough operation that I think its worth providing a shorthand.
2021-03-23 00:23:40 +00:00
..
change_detection.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
ecs_guide.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
event.rs Add EventWriter (#1575) 2021-03-07 20:42:04 +00:00
fixed_timestep.rs format comments (#1612) 2021-03-11 00:27:30 +00:00
hierarchy.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
parallel_query.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
removal_detection.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
startup_system.rs Adopt a Fetch pattern for SystemParams (#1074) 2020-12-15 21:57:16 -08:00
state.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
system_chaining.rs format comments (#1612) 2021-03-11 00:27:30 +00:00
system_param.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00
timers.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00