add: lua func

This commit is contained in:
Cogi Asd
2024-07-07 23:53:27 +03:00
parent 2f2d6a69e8
commit 7a1c035f01
7 changed files with 114 additions and 4 deletions
+4
View File
@@ -45,6 +45,7 @@ class Player : public Object, public Serializable {
int chosenSlot;
glm::vec3 spawnpoint {};
std::shared_ptr<Inventory> inventory;
float jumpForce = 1.0f;
bool flight = false;
bool noclip = false;
public:
@@ -73,6 +74,9 @@ public:
bool isNoclip() const;
void setNoclip(bool flag);
float getJumpForce() const;
void setJumpForce(float value);
std::shared_ptr<Inventory> getInventory() const;