bevy/crates/bevy_ecs/src/world
Steve Alexander 713acc2e6d
Change event to event_key where it refers to an EventKey (#20060)
# Objective

The ECS code to do with Observers was recently refactored to use an
`EventKey` newtype. On reading through the PR, I was a bit confused that
sometimes a variable called `event` refers to an `Event` and sometimes
it refers to an `EventKey`. I think the code is clearer when `event`
refers to an `Event` and `event_key` refers to an `EventKey`.

## Solution

This PR renames some uses of `event` to `event_key`.

## Testing

- Did you test these changes? If so, how?

I ran `cargo run -p ci -- tests`

- Are there any parts that need more testing?

No

- How can other people (reviewers) test your changes? Is there anything
specific they need to know?

No.

- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?

Probably not relevant, but MacOS.

---------

Co-authored-by: Steve Alexander <steve.alexander@priva.com>
2025-07-16 18:19:30 +00:00
..
command_queue.rs Rename num_entities to entity_count (#19781) 2025-06-23 05:08:02 +00:00
deferred_world.rs Change event to event_key where it refers to an EventKey (#20060) 2025-07-16 18:19:30 +00:00
entity_fetch.rs Fix regression on the get/get_mut/get_not_found (#19505) 2025-06-06 21:04:27 +00:00
entity_ref.rs Add EntityWorldMut::(try_)resource_scope (#20162) 2025-07-16 17:37:25 +00:00
error.rs ECS: put strings only used for debug behind a feature (#19558) 2025-06-18 20:15:25 +00:00
filtered_resource.rs Only get valid component ids (#19510) 2025-06-06 20:59:57 +00:00
identifier.rs Stop storing access for all systems (#19477) 2025-06-13 17:56:09 +00:00
mod.rs Add EntityWorldMut::(try_)resource_scope (#20162) 2025-07-16 17:37:25 +00:00
reflect.rs ECS: put strings only used for debug behind a feature (#19558) 2025-06-18 20:15:25 +00:00
spawn_batch.rs Encapsulate cfg(feature = "track_location") in a type. (#17602) 2025-02-10 21:21:20 +00:00
unsafe_world_cell.rs Remove 's lifetime from WorldQuery::Fetch (#19720) 2025-06-19 00:58:21 +00:00