2020-02-29 16:15:41 +00:00
|
|
|
#ifndef OPENMW_PROCESSOROBJECTSOUND_HPP
|
|
|
|
#define OPENMW_PROCESSOROBJECTSOUND_HPP
|
|
|
|
|
|
|
|
#include "../ObjectProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorObjectSound : public ObjectProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorObjectSound()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_OBJECT_SOUND)
|
|
|
|
}
|
|
|
|
|
|
|
|
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("OnObjectSound")>(player.getId(), objectList.cell.getShortDescription().c_str());
|
2020-02-29 16:15:41 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSOROBJECTSOUND_HPP
|