bevy/crates/bevy_ecs/src
Aevyrie 282f8ed0b9 Add helpers to send Events from World (#5355)
# Objective

- With access to `World`, it's not obvious how to send an event.
- This is especially useful if you are writing a `Command` that needs to send an `Event`.
- `Events` are a first-class construct in bevy, even though they are just `Resources` under the hood. Their methods should be discoverable.

## Solution

- Provide a simple helpers to send events through `Res<Events<T>>`.
---

## Changelog

> `send_event`, `send_default_event`, and `send_event_batch` methods added to `World`.
2022-07-19 20:54:03 +00:00
..
entity Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
query remove QF generics from all Query/State methods and types (#5170) 2022-07-19 00:45:00 +00:00
schedule Simplify design for *Labels (#4957) 2022-07-14 18:23:01 +00:00
storage Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
system remove QF generics from all Query/State methods and types (#5170) 2022-07-19 00:45:00 +00:00
world Add helpers to send Events from World (#5355) 2022-07-19 20:54:03 +00:00
archetype.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
bundle.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
change_detection.rs Add reflection for resources (#5175) 2022-07-04 13:04:20 +00:00
component.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
event.rs Document exotic patterns for Commands and Events (#4840) 2022-07-13 14:40:52 +00:00
lib.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
reflect.rs Add apply_or_insert functions to reflected component and resources (#5201) 2022-07-11 14:11:24 +00:00