File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ pub fn install(session: &mut SessionBuilder) {
1111 DamageRegion :: register_schema ( ) ;
1212 DamageRegionOwner :: register_schema ( ) ;
1313
14- session
15- . add_system_to_stage ( CoreStage :: PostUpdate , kill_players_in_damage_region) ;
14+ session. add_system_to_stage ( CoreStage :: PostUpdate , kill_players_in_damage_region) ;
1615}
1716
1817/// A rectangular damage region.
Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ impl MatchScore {
7676}
7777
7878pub fn session_plugin ( session : & mut SessionBuilder ) {
79- session
80- . add_system_to_stage ( CoreStage :: PostUpdate , round_end) ;
79+ session. add_system_to_stage ( CoreStage :: PostUpdate , round_end) ;
8180}
8281
8382pub fn round_end (
Original file line number Diff line number Diff line change @@ -173,9 +173,10 @@ fn main() {
173173
174174 // Create a new session for the pause menu, which sits in the background by default and only
175175 // does anything while the game is running.
176- game. sessions . create_with ( SessionNames :: PAUSE_MENU , |builder| {
177- builder. install_plugin ( ui:: pause_menu:: session_plugin) ;
178- } ) ;
176+ game. sessions
177+ . create_with ( SessionNames :: PAUSE_MENU , |builder| {
178+ builder. install_plugin ( ui:: pause_menu:: session_plugin) ;
179+ } ) ;
179180
180181 // Set priority to ensure pause menu comes before scoring menu (drawn on top)
181182 game. sessions
@@ -189,9 +190,10 @@ fn main() {
189190 } ) ;
190191
191192 // session for pop-ups / nofication UI
192- game. sessions . create_with ( SessionNames :: NOTIFICATION , |builder| {
193- builder. install_plugin ( ui:: notification:: session_plugin) ;
194- } ) ;
193+ game. sessions
194+ . create_with ( SessionNames :: NOTIFICATION , |builder| {
195+ builder. install_plugin ( ui:: notification:: session_plugin) ;
196+ } ) ;
195197
196198 // Create a bevy renderer for the bones game and run it.
197199 BonesBevyRenderer {
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ use crate::prelude::*;
55/// Installs profiler ui plugins
66pub fn game_plugin ( game : & mut Game ) {
77 game. systems . add_before_system ( mark_new_frame) ;
8- game. sessions . create_with ( SessionNames :: PROFILER , |builder| {
9- builder. install_plugin ( session_plugin) ;
10- } ) ;
8+ game. sessions
9+ . create_with ( SessionNames :: PROFILER , |builder| {
10+ builder. install_plugin ( session_plugin) ;
11+ } ) ;
1112}
1213
1314/// Install the profiler UI to profiler session.
You can’t perform that action at this time.
0 commit comments