forked from mirror/openmw-tes3mp
25 lines
586 B
C++
25 lines
586 B
C++
#ifndef OPENMW_PROCESSORDOORSTATE_HPP
|
|
#define OPENMW_PROCESSORDOORSTATE_HPP
|
|
|
|
#include "../WorldProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorDoorState : public WorldProcessor
|
|
{
|
|
public:
|
|
ProcessorDoorState()
|
|
{
|
|
BPP_INIT(ID_DOOR_STATE)
|
|
}
|
|
|
|
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
|
|
{
|
|
packet.Send(true);
|
|
|
|
Script::Call<Script::CallbackIdentity("OnDoorState")>(player.getId(), event.cell.getDescription().c_str());
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORDOORSTATE_HPP
|