mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Entity damage system WIP; Remove C++ mobs
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user