Skip to content

Commit

Permalink
Implement simple building construction
Browse files Browse the repository at this point in the history
Relates to #23.
  • Loading branch information
Indy2222 committed Jun 20, 2022
1 parent 0ffbc28 commit c52c759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/controller/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ fn mouse_click_handler(
selected: Query<Entity, (With<Selected>, With<MovableSolid>)>,
pointer: Res<Pointer>,
) {
// TODO: left click constructs draft

if !click_events.iter().any(|e| e.button == MouseButton::Right) {
return;
}
Expand Down

0 comments on commit c52c759

Please sign in to comment.