diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 18:05:18 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 18:05:18 +1100 |
| commit | 1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (patch) | |
| tree | 222dfcd07a1e40716127a347bbfd7119ce3d0984 /src/client/movement.hh | |
initial commit
Diffstat (limited to 'src/client/movement.hh')
| -rw-r--r-- | src/client/movement.hh | 23 |
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 |
