Skip to content

Commit aec5026

Browse files
Added links to Observer methods that create EventKeys
1 parent 5e3f691 commit aec5026

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

crates/bevy_ecs/src/event/base.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,14 @@ pub(crate) struct EventInstance<E: BufferedEvent> {
424424

425425
/// # Warning
426426
///
427-
/// Should only be instantiated internally to this crate.
428-
/// </section>
429427
/// This struct should only be instantiated internally to this crate.
428+
///
429+
/// [`EventKey`]s are created in:
430+
/// - [`crate::observer::trigger_dynamic_ref_with_caller`]
431+
/// - [`crate::observer::trigger_dynamic_ref_with_caller`]
432+
/// - [`crate::observer::observer_multiple_events`]
433+
/// - [`crate::observer::observer_dynamic_trigger`]
434+
/// - [`crate::observer::runner::hook_on_add`]
430435
#[derive(Debug, Copy, Clone, Hash, Ord, PartialOrd, Eq, PartialEq)]
431436
pub struct EventKey(pub(crate) ComponentId);
432437

0 commit comments

Comments
 (0)