1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 16:45:33 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/object/ProcessorObjectDialogueChoice.hpp
2020-10-26 19:48:40 +02:00

30 lines
752 B
C++

#ifndef OPENMW_PROCESSOROBJECTDIALOGUECHOICE_HPP
#define OPENMW_PROCESSOROBJECTDIALOGUECHOICE_HPP
#include "BaseObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectDialogueChoice final: public BaseObjectProcessor
{
public:
ProcessorObjectDialogueChoice()
{
BPP_INIT(ID_OBJECT_DIALOGUE_CHOICE)
}
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
{
BaseObjectProcessor::Do(packet, objectList);
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
if (!ptrCellStore) return;
objectList.makeDialogueChoices(ptrCellStore);
}
};
}
#endif //OPENMW_PROCESSOROBJECTDIALOGUECHOICE_HPP