summaryrefslogtreecommitdiff
path: root/src/content_sao.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-30 13:26:40 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-30 13:34:21 +0300
commit3241ad3ae8da687262db32776a1da2ef7403b3e9 (patch)
treedaa4e42ed2501e1ad6b9caa17087e4c50c65c1fd /src/content_sao.h
parent9e7ccedba4d9a94c7f2d20013c55e82aac3fe6a3 (diff)
downloadminetest-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.h5
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