mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-29 12:15:18 +01: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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user