From 7d703efb85de59bb7d57cf080b847677074f7f28 Mon Sep 17 00:00:00 2001 From: Martin Indra Date: Tue, 5 Apr 2022 20:25:13 +0200 Subject: [PATCH] Rename mouse_click_event to mouse_click_handler --- src/game/selection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/selection.rs b/src/game/selection.rs index 7d28977e..0dbfe1d5 100644 --- a/src/game/selection.rs +++ b/src/game/selection.rs @@ -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), ); } } @@ -96,7 +96,7 @@ impl<'w, 's> Selector<'w, 's> { } } -fn mouse_click_event( +fn mouse_click_handler( mut event: EventReader, keys: Res>, playable: Intersector>,