mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Drop genericobject.{cpp,h} (#9629)
* Drop genericobject.{cpp,h} This file is not for generic object but for ActiveObject message passing. Put ownership of the various commands to the right objects and cleanup the related code. * Protect ServerActiveObject::m_messages_out * typo fix
This commit is contained in:
parent
2349d31bae
commit
f648fb76ae
16 changed files with 300 additions and 407 deletions
|
@ -55,6 +55,22 @@ struct ActiveObjectMessage
|
|||
std::string datastring;
|
||||
};
|
||||
|
||||
enum ActiveObjectCommand {
|
||||
AO_CMD_SET_PROPERTIES,
|
||||
AO_CMD_UPDATE_POSITION,
|
||||
AO_CMD_SET_TEXTURE_MOD,
|
||||
AO_CMD_SET_SPRITE,
|
||||
AO_CMD_PUNCHED,
|
||||
AO_CMD_UPDATE_ARMOR_GROUPS,
|
||||
AO_CMD_SET_ANIMATION,
|
||||
AO_CMD_SET_BONE_POSITION,
|
||||
AO_CMD_ATTACH_TO,
|
||||
AO_CMD_SET_PHYSICS_OVERRIDE,
|
||||
AO_CMD_UPDATE_NAMETAG_ATTRIBUTES,
|
||||
AO_CMD_SPAWN_INFANT,
|
||||
AO_CMD_SET_ANIMATION_SPEED
|
||||
};
|
||||
|
||||
/*
|
||||
Parent class for ServerActiveObject and ClientActiveObject
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue