bevy/crates/bevy_ecs/src/world
AlephCubed 3aed85a88b
Rename send_event and similar methods to write_event (#20017)
Fixes: #18963
Follows up on: #17977
Adopts: #18966

In 0.16, `EventWriter::send` was renamed to `EventWriter::write`, but
many methods were missed (sorry about that). This completes that
refactor by renaming all `send` methods and internals.

| Old | New |

|-------------------------------------|--------------------------------------|
| `World::send_event` | `World::write_event` |
| `World::send_event_default` | `World::write_event_default` |
| `World::send_event_batch` | `World::write_event_batch` |
| `DeferredWorld::send_event` | `DeferredWorld::write_event` |
| `DeferredWorld::send_event_default` |
`DeferredWorld::write_event_default` |
| `DeferredWorld::send_event_batch` | `DeferredWorld::write_event_batch`
|
| `Commands::send_event` | `Commmands::write_event` |
| `Events::send` | `Events::write` |
| `Events::send_default` | `Events::write_default` |
| `Events::send_batch` | `Events::write_batch` |
| `RemovedComponentEvents::send` | `RemovedComponentEvents::write` |
| `command::send_event` | `commmand::write_event` |
| `SendBatchIds` | `WriteBatchIds` |

---------

Co-authored-by: shwwwa <shwwwa.dev@gmail.com>
2025-07-07 22:05:16 +00:00
..
command_queue.rs Rename num_entities to entity_count (#19781) 2025-06-23 05:08:02 +00:00
deferred_world.rs Rename send_event and similar methods to write_event (#20017) 2025-07-07 22:05:16 +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 Rename send_event and similar methods to write_event (#20017) 2025-07-07 22:05:16 +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 Rename send_event and similar methods to write_event (#20017) 2025-07-07 22:05:16 +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