aboutsummaryrefslogtreecommitdiff
path: root/src/client/movement.hh
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-02-12 18:05:18 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-02-12 18:05:18 +1100
commit1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (patch)
tree222dfcd07a1e40716127a347bbfd7119ce3d0984 /src/client/movement.hh
initial commit
Diffstat (limited to 'src/client/movement.hh')
-rw-r--r--src/client/movement.hh23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/client/movement.hh b/src/client/movement.hh
new file mode 100644
index 0000000..82b56b1
--- /dev/null
+++ b/src/client/movement.hh
@@ -0,0 +1,23 @@
+#ifndef CLIENT_MOVEMENT_HH_
+#define CLIENT_MOVEMENT_HH_
+
+#include "client/world.hh"
+#include "shared/movement.hh"
+#include "shared/net/net.hh"
+#include "shared/player.hh"
+
+namespace client {
+namespace movement {
+
+void move(shared::player& player, client::world::chunk::map& chunks,
+ const float deltatime) noexcept;
+
+enum class interact_mode { add, remove };
+std::optional<std::pair<shared::math::coords, glm::ivec3>>
+interact(const shared::player& player, const interact_mode& mode,
+ const client::world::chunk::map& chunks) noexcept;
+
+} // namespace movement
+} // namespace client
+
+#endif