openmw-tes3coop/apps/openmw/mwmp/processors/world/ProcessorConsoleCommand.hpp
2017-11-23 00:21:47 +02:00

25 lines
560 B
C++

#ifndef OPENMW_PROCESSORCONSOLECOMMAND_HPP
#define OPENMW_PROCESSORCONSOLECOMMAND_HPP
#include "BaseObjectProcessor.hpp"
namespace mwmp
{
class ProcessorConsoleCommand : public BaseObjectProcessor
{
public:
ProcessorConsoleCommand()
{
BPP_INIT(ID_CONSOLE_COMMAND)
}
virtual void Do(WorldPacket &packet, WorldEvent &event)
{
BaseObjectProcessor::Do(packet, event);
event.runConsoleCommands(ptrCellStore);
}
};
}
#endif //OPENMW_PROCESSORCONSOLECOMMAND_HPP