mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
add post_startup stage
This commit is contained in:
parent
4e1d953c95
commit
bab2ad335d
2 changed files with 4 additions and 0 deletions
|
@ -164,6 +164,7 @@ impl AppBuilder {
|
|||
|
||||
pub fn add_default_stages(&mut self) -> &mut Self {
|
||||
self.add_startup_stage(stage::STARTUP)
|
||||
.add_startup_stage(stage::POST_STARTUP)
|
||||
.add_stage(stage::FIRST)
|
||||
.add_stage(stage::EVENT_UPDATE)
|
||||
.add_stage(stage::PRE_UPDATE)
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
/// Name of app stage that runs once when an app starts up
|
||||
pub const STARTUP: &str = "startup";
|
||||
|
||||
/// Name of app stage that runs once after startup
|
||||
pub const POST_STARTUP: &str = "post_startup";
|
||||
|
||||
/// Name of app stage that runs before all other app stages
|
||||
pub const FIRST: &str = "first";
|
||||
|
||||
|
|
Loading…
Reference in a new issue