1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
mod app;
mod app_builder;
mod event;
mod plugin;
mod plugin_group;
mod schedule_runner;
pub use app::*;
pub use app_builder::*;
pub use bevy_derive::DynamicPlugin;
pub use event::*;
pub use plugin::*;
pub use plugin_group::*;
pub use schedule_runner::*;
pub mod prelude {
pub use crate::{
app::App,
app_builder::AppBuilder,
event::{EventReader, EventWriter},
CoreStage, DynamicPlugin, Plugin, PluginGroup, StartupStage,
};
}
use bevy_ecs::schedule::StageLabel;
#[derive(Debug, Hash, PartialEq, Eq, Clone, StageLabel)]
pub enum CoreStage {
Startup,
First,
PreUpdate,
Update,
PostUpdate,
Last,
}
#[derive(Debug, Hash, PartialEq, Eq, Clone, StageLabel)]
pub enum StartupStage {
PreStartup,
Startup,
PostStartup,
}