@@ -56,8 +56,8 @@ pub struct App {
56
56
pub runner : Box < dyn Fn ( App ) > ,
57
57
/// A container of [`Stage`]s set to be run in a linear order.
58
58
pub schedule : Schedule ,
59
- /// stage run after main schedule and sub app schedules
60
- pub stage_very_last : SystemStage ,
59
+ /// A stage run after main schedule and sub app schedules
60
+ pub final_stage : SystemStage ,
61
61
sub_apps : HashMap < Box < dyn AppLabel > , SubApp > ,
62
62
}
63
63
@@ -100,7 +100,7 @@ impl App {
100
100
Self {
101
101
world : Default :: default ( ) ,
102
102
schedule : Default :: default ( ) ,
103
- stage_very_last : SystemStage :: single_threaded ( ) ,
103
+ final_stage : SystemStage :: single_threaded ( ) ,
104
104
runner : Box :: new ( run_once) ,
105
105
sub_apps : HashMap :: default ( ) ,
106
106
}
@@ -118,7 +118,7 @@ impl App {
118
118
for sub_app in self . sub_apps . values_mut ( ) {
119
119
( sub_app. runner ) ( & mut self . world , & mut sub_app. app ) ;
120
120
}
121
- self . stage_very_last . run ( & mut self . world ) ;
121
+ self . final_stage . run ( & mut self . world ) ;
122
122
}
123
123
124
124
/// Starts the application by calling the app's [runner function](Self::set_runner).
@@ -330,12 +330,12 @@ impl App {
330
330
self . add_system_to_stage ( CoreStage :: Update , system)
331
331
}
332
332
333
- /// adds a system to the very last stage
334
- pub fn add_system_very_last < Params > (
333
+ /// Adds a system to the final stage that runs after the app and render schedules.
334
+ pub fn add_system_to_final_stage < Params > (
335
335
& mut self ,
336
336
system : impl IntoSystemDescriptor < Params > ,
337
337
) -> & mut Self {
338
- self . stage_very_last . add_system ( system) ;
338
+ self . final_stage . add_system ( system) ;
339
339
self
340
340
}
341
341
0 commit comments