mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
new player.* functions
This commit is contained in:
parent
0ad3dd7ab8
commit
1917cbba8b
16 changed files with 306 additions and 224 deletions
|
|
@ -167,6 +167,22 @@ float Player::getSpeed() const {
|
|||
return speed;
|
||||
}
|
||||
|
||||
bool Player::isFlight() const {
|
||||
return flight;
|
||||
}
|
||||
|
||||
void Player::setFlight(bool flag) {
|
||||
this->flight = flag;
|
||||
}
|
||||
|
||||
bool Player::isNoclip() const {
|
||||
return noclip;
|
||||
}
|
||||
|
||||
void Player::setNoclip(bool flag) {
|
||||
this->noclip = flag;
|
||||
}
|
||||
|
||||
std::shared_ptr<Inventory> Player::getInventory() const {
|
||||
return inventory;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue