mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
add player.is_instant_destruction, .set_instant_destruction
This commit is contained in:
parent
005bcfb436
commit
2ba90625ce
5 changed files with 44 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ class Player : public Object, public Serializable {
|
|||
bool flight = false;
|
||||
bool noclip = false;
|
||||
bool infiniteItems = true;
|
||||
bool instantDestruction = true;
|
||||
entityid_t eid;
|
||||
entityid_t selectedEid;
|
||||
public:
|
||||
|
|
@ -90,6 +91,9 @@ public:
|
|||
bool isInfiniteItems() const;
|
||||
void setInfiniteItems(bool flag);
|
||||
|
||||
bool isInstantDestruction() const;
|
||||
void setInstantDestruction(bool flag);
|
||||
|
||||
entityid_t getEntity() const;
|
||||
void setEntity(entityid_t eid);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue