add: lua func
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user