mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 00:49:54 +00:00
27 lines
673 B
C++
27 lines
673 B
C++
#ifndef OPENMW_PROCESSORCONSOLECOMMAND_HPP
|
|
#define OPENMW_PROCESSORCONSOLECOMMAND_HPP
|
|
|
|
#include "BaseObjectProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorConsoleCommand final: public BaseObjectProcessor
|
|
{
|
|
public:
|
|
ProcessorConsoleCommand()
|
|
{
|
|
BPP_INIT(ID_CONSOLE_COMMAND)
|
|
}
|
|
|
|
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
|
|
{
|
|
BaseObjectProcessor::Do(packet, objectList);
|
|
|
|
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
|
|
|
|
objectList.runConsoleCommands(ptrCellStore);
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORCONSOLECOMMAND_HPP
|