X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fluaentity_common.h;h=e769cf3df2e56f0589a1987136de51c83a98461e;hb=5403b1cf6d9906dac67fd9ed60b1531398e21bfb;hp=bc2871a94e34031dbacd95d947f201b4af31e8ff;hpb=82a460ec90b4537926f31603219504bce8817ac2;p=minetest.git diff --git a/src/luaentity_common.h b/src/luaentity_common.h index bc2871a94..e769cf3df 100644 --- a/src/luaentity_common.h +++ b/src/luaentity_common.h @@ -20,27 +20,11 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef LUAENTITY_COMMON_HEADER #define LUAENTITY_COMMON_HEADER -#include -#include "irrlichttypes.h" -#include - -struct LuaEntityProperties -{ - // Values are BS=1 - 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(); - void serialize(std::ostream &os); - 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