Skip to content

Commit ba5668a

Browse files
committed
fix: formatting
1 parent c0ae44e commit ba5668a

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

src/core/damage.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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.

src/core/scoring.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ impl MatchScore {
7676
}
7777

7878
pub 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

8382
pub fn round_end(

src/main.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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 {

src/profiler.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ use crate::prelude::*;
55
/// Installs profiler ui plugins
66
pub 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.

0 commit comments

Comments
 (0)