You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/openmw/mwmp/processors/object/ProcessorObjectDialogueChoi...

31 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