mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
add: lua func
This commit is contained in:
parent
2f2d6a69e8
commit
7a1c035f01
7 changed files with 114 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue