]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/luaentity_common.h
Menu tuning WIP
[dragonfireclient.git] / src / luaentity_common.h
index 379249d3fec70289dc8141164f9ae14cc8ad4ee3..d12ec9f0ef1bc33fbcba279867323b9a6937630e 100644 (file)
@@ -26,11 +26,16 @@ 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;
        std::string visual;
-       core::list<std::string> textures;
+       v2f visual_size;
+       core::array<std::string> textures;
+       v2s16 spritediv;
+       v2s16 initial_sprite_basepos;
 
        LuaEntityProperties();
        std::string dump();
@@ -38,5 +43,11 @@ 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
+#define LUAENTITY_CMD_UPDATE_ARMOR_GROUPS 4
+
 #endif