diff options
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 |
