diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-14 14:24:43 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-15 02:50:59 +0100 |
commit | 02750384df3142bda62a7ce0feb08d115aa6af29 (patch) | |
tree | d7b6d4da9a2cd9214a623d19d439b4c9b7e029b7 /src/client.rs | |
parent | 69584a302d132dc2bcc3837437e7347a3e0a5114 (diff) |
feat: walking
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.rs b/src/client.rs index b36bba9..bac597e 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1,5 +1,6 @@ use crate::client::network::*; use crate::protocol::*; +use crate::shared::imperative::*; use crate::shared::*; use bevy::input::mouse::MouseButton; use bevy::prelude::*; @@ -75,7 +76,7 @@ fn buffer_input( if let Some(world_position) = camera.viewport_to_world_2d(camera_transform, cursor_position) { - client.add_input(Inputs::Teleport(world_position)); + client.add_input(Inputs::Imperative(Imperative::WalkTo(world_position))); } } } |