X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fluaentity_common.h;h=d12ec9f0ef1bc33fbcba279867323b9a6937630e;hb=2b200d481fd919752bdb786142e5eb41c3932537;hp=6e5f11385ffe59012d7c0282c8df0163c2db1f44;hpb=75a0ca6bd67aa9ca87668bc27d36399b5028c2b1;p=dragonfireclient.git diff --git a/src/luaentity_common.h b/src/luaentity_common.h index 6e5f11385..d12ec9f0e 100644 --- a/src/luaentity_common.h +++ b/src/luaentity_common.h @@ -27,11 +27,15 @@ 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 collisionbox; std::string visual; + v2f visual_size; core::array textures; + v2s16 spritediv; + v2s16 initial_sprite_basepos; LuaEntityProperties(); std::string dump(); @@ -39,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