aboutsummaryrefslogtreecommitdiff
path: root/src/client/movement.hh
blob: 82b56b10b5333da83c0304eeff961486a80fe499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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