feat: move players to world instead of main

This commit is contained in:
2026-03-13 16:35:36 +08:00
parent 32d617b440
commit 98967275ff
6 changed files with 40 additions and 18 deletions

View File

@@ -2,7 +2,10 @@
#include <Cubed/gameplay/player.hpp>
Player::Player() {
Player::Player(const World& world, const std::string& name) :
m_world(world),
m_name(name)
{
}
@@ -18,10 +21,6 @@ const MoveState& Player::get_move_state() const {
return m_move_state;
}
void Player::init(bool** block_present) {
m_block_present = block_present;
}
void Player::set_player_pos(const glm::vec3& pos) {
m_player_pos = pos;
}