add player.is_suspended, player.set_suspended

This commit is contained in:
MihailRis
2025-01-15 22:25:51 +03:00
parent 40cdebb175
commit 43f0cbe3fe
6 changed files with 59 additions and 0 deletions
+4
View File
@@ -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);