bevy/examples/animation
Christian Hughes 219b5930f1
Rename App/World::observe to add_observer, EntityWorldMut::observe_entity to observe. (#15754)
# Objective

- Closes #15752

Calling the functions `App::observe` and `World::observe` doesn't make
sense because you're not "observing" the `App` or `World`, you're adding
an observer that listens for an event that occurs *within* the `World`.
We should rename them to better fit this.

## Solution

Renames:
- `App::observe` -> `App::add_observer`
- `World::observe` -> `World::add_observer`
- `Commands::observe` -> `Commands::add_observer`
- `EntityWorldMut::observe_entity` -> `EntityWorldMut::observe`

(Note this isn't a breaking change as the original rename was introduced
earlier this cycle.)

## Testing

Reusing current tests.
2024-10-09 15:39:29 +00:00
..
animated_fox.rs Rename App/World::observe to add_observer, EntityWorldMut::observe_entity to observe. (#15754) 2024-10-09 15:39:29 +00:00
animated_transform.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
animated_ui.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
animation_events.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
animation_graph.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
animation_masks.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
color_animation.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
custom_skinned_mesh.rs Vary transforms for custom_skinned_mesh example (#15710) 2024-10-08 12:37:46 +00:00
eased_motion.rs Simplified easing curves (#15711) 2024-10-08 19:45:13 +00:00
easing_functions.rs easing_functions example: draw point closer to its curve (#15744) 2024-10-08 22:40:40 +00:00
gltf_skinned_mesh.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
morph_targets.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00