diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-30 13:26:40 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-30 13:34:21 +0300 |
commit | 3241ad3ae8da687262db32776a1da2ef7403b3e9 (patch) | |
tree | daa4e42ed2501e1ad6b9caa17087e4c50c65c1fd /src/content_sao.h | |
parent | 9e7ccedba4d9a94c7f2d20013c55e82aac3fe6a3 (diff) | |
download | minetest-3241ad3ae8da687262db32776a1da2ef7403b3e9.tar.gz minetest-3241ad3ae8da687262db32776a1da2ef7403b3e9.tar.bz2 minetest-3241ad3ae8da687262db32776a1da2ef7403b3e9.zip |
ObjectRef:set_armor_groups() and ObjectRef:set_properties() - works on players too!
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index f0788cbd5..f3b9f8b2f 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -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 |