bevy/examples/ecs
Carter Anderson b1c3e9862d Auto-label function systems with SystemTypeIdLabel (#4224)
This adds the concept of "default labels" for systems (currently scoped to "parallel systems", but this could just as easily be implemented for "exclusive systems"). Function systems now include their function's `SystemTypeIdLabel` by default.

This enables the following patterns:

```rust
// ordering two systems without manually defining labels
app
  .add_system(update_velocity)
  .add_system(movement.after(update_velocity))

// ordering sets of systems without manually defining labels
app
  .add_system(foo)
  .add_system_set(
    SystemSet::new()
      .after(foo)
      .with_system(bar)
      .with_system(baz)
  )
```

Fixes: #4219
Related to: #4220 

Credit to @aevyrie @alice-i-cecile @DJMcNab (and probably others) for proposing (and supporting) this idea about a year ago. I was a big dummy that both shut down this (very good) idea and then forgot I did that. Sorry. You all were right!
2022-03-23 22:53:56 +00:00
..
component_change_detection.rs Implement and require #[derive(Component)] on all component structs (#2254) 2021-10-03 19:23:44 +00:00
custom_query_param.rs Implement WorldQuery derive macro (#2713) 2022-02-24 00:19:49 +00:00
ecs_guide.rs Make get_resource (and friends) infallible (#4047) 2022-02-27 22:37:18 +00:00
event.rs Simplify sending empty events (#2935) 2022-02-04 01:24:47 +00:00
fixed_timestep.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
generic_system.rs Add generic systems example (#2636) 2022-02-08 16:24:46 +00:00
hierarchy.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
iter_combinations.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
parallel_query.rs Add docs and common helper functions to Windows (#4107) 2022-03-08 00:46:04 +00:00
removal_detection.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
startup_system.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
state.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
system_chaining.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
system_param.rs Fix doc_markdown lints in examples (#3486) 2021-12-29 17:25:34 +00:00
system_sets.rs Auto-label function systems with SystemTypeIdLabel (#4224) 2022-03-23 22:53:56 +00:00
timers.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00