You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/bevy_app/src/event.rs
+30-19
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,12 @@ enum State {
55
55
B,
56
56
}
57
57
58
-
/// An event collection that represents the events that occurred within the last two [Events::update] calls. Events can be cheaply read using
59
-
/// an [EventReader]. This collection is meant to be paired with a system that calls [Events::update] exactly once per update/frame. [Events::update_system]
60
-
/// is a system that does this. [EventReader]s are expected to read events from this collection at least once per update/frame. If events are not handled
61
-
/// within one frame/update, they will be dropped.
58
+
/// An event collection that represents the events that occurred within the last two
59
+
/// [Events::update] calls. Events can be cheaply read using an [EventReader]. This collection is
60
+
/// meant to be paired with a system that calls [Events::update] exactly once per update/frame.
61
+
/// [Events::update_system] is a system that does this. [EventReader]s are expected to read events
62
+
/// from this collection at least once per update/frame. If events are not handled within one
63
+
/// frame/update, they will be dropped.
62
64
///
63
65
/// # Example
64
66
/// ```
@@ -89,14 +91,16 @@ enum State {
89
91
///
90
92
/// # Details
91
93
///
92
-
/// [Events] is implemented using a double buffer. Each call to [Events::update] swaps buffers and clears out the oldest buffer.
93
-
/// [EventReader]s that read at least once per update will never drop events. [EventReader]s that read once within two updates might
94
-
/// still receive some events. [EventReader]s that read after two updates are guaranteed to drop all events that occurred before those updates.
94
+
/// [Events] is implemented using a double buffer. Each call to [Events::update] swaps buffers and
95
+
/// clears out the oldest buffer. [EventReader]s that read at least once per update will never drop
96
+
/// events. [EventReader]s that read once within two updates might still receive some events.
97
+
/// [EventReader]s that read after two updates are guaranteed to drop all events that occurred
98
+
/// before those updates.
95
99
///
96
100
/// The buffers in [Events] will grow indefinitely if [Events::update] is never called.
97
101
///
98
-
/// An alternative call pattern would be to call [Events::update] manually across frames to control when events are cleared. However
99
-
/// this complicates consumption
102
+
/// An alternative call pattern would be to call [Events::update] manually across frames to control
103
+
/// when events are cleared. However this complicates consumption
Copy file name to clipboardExpand all lines: crates/bevy_app/src/plugin.rs
+2-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@ use std::any::Any;
3
3
4
4
/// A collection of Bevy App logic and configuration
5
5
///
6
-
/// Plugins use [AppBuilder] to configure an [App](crate::App). When an [App](crate::App) registers a plugin, the plugin's [Plugin::build] function is run.
6
+
/// Plugins use [AppBuilder] to configure an [App](crate::App). When an [App](crate::App) registers
7
+
/// a plugin, the plugin's [Plugin::build] function is run.
0 commit comments