diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 21:57:46 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 21:57:46 +1100 |
| commit | e4483eca01b48b943cd0461e24a74ae1a3139ed4 (patch) | |
| tree | ed58c3c246e3af1af337697695d780aa31f6ad9a /src/shared/player.hh | |
| parent | 1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (diff) | |
Update to most recent version (old initial commit)
Diffstat (limited to 'src/shared/player.hh')
| -rw-r--r-- | src/shared/player.hh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/shared/player.hh b/src/shared/player.hh deleted file mode 100644 index 5929c5b..0000000 --- a/src/shared/player.hh +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef SHARED_PLAYER_HH_ -#define SHARED_PLAYER_HH_ - -#include <cstdint> - -#include <glm/glm.hpp> - -#include "shared/math.hh" - -namespace shared { - -// Anything here goes over the wire. -struct player { -public: - using index_t = std::uint32_t; - - static constexpr float HEIGHT = 1.9f; - static constexpr float EYE_HEIGHT = HEIGHT * 0.8f; - static constexpr float HALFWIDTH = 0.25f; - -public: - std::uint32_t index = 0; - std::uint32_t commands = 0; - - shared::math::coords chunk_pos = {}; - glm::vec3 local_pos = {}; - - shared::math::angles viewangles = {}; - glm::vec3 velocity = {}; - -public: - enum mask : decltype(commands) { - forward = 1 << 0, - left = 1 << 1, - backward = 1 << 2, - right = 1 << 3, - jump = 1 << 4, - crouch = 1 << 5, - sprint = 1 << 6, - attack = 1 << 7 - }; -}; - -} // namespace shared - -#endif |
