2020-10-26 17:48:40 +00:00
|
|
|
#ifndef OPENMW_PROCESSOROBJECTDIALOGUECHOICE_HPP
|
|
|
|
#define OPENMW_PROCESSOROBJECTDIALOGUECHOICE_HPP
|
|
|
|
|
|
|
|
#include "../ObjectProcessor.hpp"
|
|
|
|
#include <apps/openmw-mp/Networking.hpp>
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorObjectDialogueChoice : public ObjectProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorObjectDialogueChoice()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_OBJECT_DIALOGUE_CHOICE)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Do(ObjectPacket &packet, Player &player, BaseObjectList &objectList) override
|
|
|
|
{
|
|
|
|
LOG_MESSAGE_SIMPLE(TimedLog::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str());
|
|
|
|
|
2021-09-17 17:14:55 +00:00
|
|
|
Script::Call<Script::CallbackIdentity("OnObjectDialogueChoice")>(player.getId(), objectList.cell.getShortDescription().c_str());
|
2020-10-26 17:48:40 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSOROBJECTDIALOGUECHOICE_HPP
|