2020-01-26 11:30:28 +00:00
|
|
|
#ifndef OPENMW_PROCESSOROBJECTSOUND_HPP
|
|
|
|
#define OPENMW_PROCESSOROBJECTSOUND_HPP
|
|
|
|
|
|
|
|
#include "BaseObjectProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorObjectSound final: public BaseObjectProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorObjectSound()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_OBJECT_SOUND)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
|
|
|
|
{
|
|
|
|
BaseObjectProcessor::Do(packet, objectList);
|
|
|
|
|
2020-06-06 20:11:16 +00:00
|
|
|
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
|
|
|
|
|
|
|
|
if (!ptrCellStore) return;
|
|
|
|
|
2020-02-29 16:15:41 +00:00
|
|
|
objectList.playObjectSounds(ptrCellStore);
|
2020-01-26 11:30:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSOROBJECTSOUND_HPP
|