Skip to content

Commit

Permalink
Rename mouse_click_event to mouse_click_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Indy2222 committed Apr 5, 2022
1 parent 368c739 commit 7d703ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct SelectionPlugin;
impl Plugin for SelectionPlugin {
fn build(&self, app: &mut App) {
app.add_system_set(
SystemSet::on_update(GameStates::Playing).with_system(mouse_click_event),
SystemSet::on_update(GameStates::Playing).with_system(mouse_click_handler),
);
}
}
Expand Down Expand Up @@ -96,7 +96,7 @@ impl<'w, 's> Selector<'w, 's> {
}
}

fn mouse_click_event(
fn mouse_click_handler(
mut event: EventReader<MouseButtonInput>,
keys: Res<Input<KeyCode>>,
playable: Intersector<With<Playable>>,
Expand Down

0 comments on commit 7d703ef

Please sign in to comment.