mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-04-10 06:14:07 +08:00
feat: move players to world instead of main
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user