2020-10-26 17:48:40 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketObjectDialogueChoice.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketObjectDialogueChoice::PacketObjectDialogueChoice(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_OBJECT_DIALOGUE_CHOICE;
|
|
|
|
hasCellData = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PacketObjectDialogueChoice::Object(BaseObject& baseObject, bool send)
|
|
|
|
{
|
|
|
|
ObjectPacket::Object(baseObject, send);
|
2020-12-13 06:09:14 +00:00
|
|
|
RW(baseObject.dialogueChoiceType, send);
|
|
|
|
|
|
|
|
if (baseObject.dialogueChoiceType == DialogueChoiceType::TOPIC)
|
|
|
|
RW(baseObject.topicId, send, true);
|
|
|
|
|
2020-10-26 17:48:40 +00:00
|
|
|
RW(baseObject.guiId, send);
|
|
|
|
}
|