1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-25 05:35:25 +02:00

ObjectRef:set_armor_groups() and ObjectRef:set_properties() - works on players too!

This commit is contained in:
Perttu Ahola
2012-03-30 13:26:40 +03:00
parent 9e7ccedba4
commit 3241ad3ae8
6 changed files with 154 additions and 64 deletions

View File

@@ -61,6 +61,8 @@ public:
void setHP(s16 hp);
s16 getHP() const;
void setArmorGroups(const ItemGroupList &armor_groups);
ObjectProperties* accessObjectProperties();
void notifyObjectPropertiesModified();
/* LuaEntitySAO-specific */
void setVelocity(v3f velocity);
v3f getVelocity();
@@ -137,7 +139,10 @@ public:
void rightClick(ServerActiveObject *clicker);
s16 getHP() const;
void setHP(s16 hp);
void setArmorGroups(const ItemGroupList &armor_groups);
ObjectProperties* accessObjectProperties();
void notifyObjectPropertiesModified();
/*
Inventory interface