summaryrefslogtreecommitdiff
path: root/src/luaentity_common.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-04 21:08:03 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-10 11:28:13 +0200
commite9cdb938fe44282e09fb88628a6e86e5e7279c69 (patch)
treed4c017082a8de4e9fc008d8b402b2efb0f6abc48 /src/luaentity_common.h
parentf1cb91cd931bed056bdbe37938d141e2ea068b89 (diff)
downloadminetest-e9cdb938fe44282e09fb88628a6e86e5e7279c69.tar.gz
minetest-e9cdb938fe44282e09fb88628a6e86e5e7279c69.tar.bz2
minetest-e9cdb938fe44282e09fb88628a6e86e5e7279c69.zip
Entity damage system WIP; Remove C++ mobs
Diffstat (limited to 'src/luaentity_common.h')
-rw-r--r--src/luaentity_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/luaentity_common.h b/src/luaentity_common.h
index bc2871a94..b63663828 100644
--- a/src/luaentity_common.h
+++ b/src/luaentity_common.h
@@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
struct LuaEntityProperties
{
// Values are BS=1
+ s16 hp_max;
bool physical;
float weight;
core::aabbox3d<f32> collisionbox;
@@ -42,5 +43,10 @@ struct LuaEntityProperties
void deSerialize(std::istream &is);
};
+#define LUAENTITY_CMD_UPDATE_POSITION 0
+#define LUAENTITY_CMD_SET_TEXTURE_MOD 1
+#define LUAENTITY_CMD_SET_SPRITE 2
+#define LUAENTITY_CMD_PUNCHED 3
+
#endif