mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
add player.is_infinite_items, .set_infinite_items
This commit is contained in:
parent
f4f479d389
commit
14b596140d
6 changed files with 54 additions and 4 deletions
|
|
@ -49,6 +49,7 @@ class Player : public Object, public Serializable {
|
|||
std::shared_ptr<Inventory> inventory;
|
||||
bool flight = false;
|
||||
bool noclip = false;
|
||||
bool infiniteItems = true;
|
||||
entityid_t eid;
|
||||
entityid_t selectedEid;
|
||||
public:
|
||||
|
|
@ -86,6 +87,9 @@ public:
|
|||
bool isNoclip() const;
|
||||
void setNoclip(bool flag);
|
||||
|
||||
bool isInfiniteItems() const;
|
||||
void setInfiniteItems(bool flag);
|
||||
|
||||
entityid_t getEntity() const;
|
||||
void setEntity(entityid_t eid);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue