bevy/crates/bevy_ecs/src/world
JoJoJet 9fd867aeba
Simplify world schedule methods (#8403)
# Objective

Methods for interacting with world schedules currently have two
variants: one that takes `impl ScheduleLabel` and one that takes `&dyn
ScheduleLabel`. Operations such as `run_schedule` or `schedule_scope`
only use the label by reference, so there is little reason to have an
owned variant of these functions.

## Solution

Decrease maintenance burden by merging the `ref` variants of these
functions with the owned variants.

---

## Changelog

- Deprecated `World::run_schedule_ref`. It is now redundant, since
`World::run_schedule` can take values by reference.

## Migration Guide

The method `World::run_schedule_ref` has been deprecated, and will be
removed in the next version of Bevy. Use `run_schedule` instead.
2023-04-19 19:48:35 +00:00
..
entity_ref.rs bevy_ecs: add untyped methods for inserting components and bundles (#7204) 2023-03-21 00:33:11 +00:00
error.rs Add World::try_run_schedule (#8028) 2023-03-17 01:22:54 +00:00
identifier.rs Inline more ECS functions (#8083) 2023-04-12 19:52:06 +00:00
mod.rs Simplify world schedule methods (#8403) 2023-04-19 19:48:35 +00:00
spawn_batch.rs Increase type safety and clarity for change detection (#7905) 2023-03-09 17:17:02 +00:00
unsafe_world_cell.rs Inline more ECS functions (#8083) 2023-04-12 19:52:06 +00:00
world_cell.rs Move all logic to UnsafeWorldCell (#7381) 2023-02-06 19:02:52 +00:00