mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
add player.is_suspended, player.set_suspended
This commit is contained in:
parent
40cdebb175
commit
43f0cbe3fe
6 changed files with 59 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ class Player : public Serializable {
|
|||
glm::vec3 position;
|
||||
glm::vec3 spawnpoint {};
|
||||
std::shared_ptr<Inventory> inventory;
|
||||
bool suspended = false;
|
||||
bool flight = false;
|
||||
bool noclip = false;
|
||||
bool infiniteItems = true;
|
||||
|
|
@ -85,6 +86,9 @@ public:
|
|||
int getChosenSlot() const;
|
||||
float getSpeed() const;
|
||||
|
||||
bool isSuspended() const;
|
||||
void setSuspended(bool flag);
|
||||
|
||||
bool isFlight() const;
|
||||
void setFlight(bool flag);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue