2017-04-02 21:46:46 +00:00
|
|
|
#ifndef OPENMW_PROCESSORDOORSTATE_HPP
|
|
|
|
#define OPENMW_PROCESSORDOORSTATE_HPP
|
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../WorldProcessor.hpp"
|
2017-04-02 21:46:46 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorDoorState : public WorldProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorDoorState()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_DOOR_STATE)
|
|
|
|
}
|
|
|
|
|
2018-05-12 16:40:00 +00:00
|
|
|
void Do(ObjectPacket &packet, Player &player, BaseEvent &event) override
|
2017-04-02 21:46:46 +00:00
|
|
|
{
|
|
|
|
packet.Send(true);
|
|
|
|
|
|
|
|
Script::Call<Script::CallbackIdentity("OnDoorState")>(player.getId(), event.cell.getDescription().c_str());
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORDOORSTATE_HPP
|