2017-04-02 21:46:46 +00:00
|
|
|
#ifndef OPENMW_PROCESSORDOORSTATE_HPP
|
|
|
|
#define OPENMW_PROCESSORDOORSTATE_HPP
|
|
|
|
|
2018-05-15 19:07:06 +00:00
|
|
|
#include "../ObjectProcessor.hpp"
|
2017-04-02 21:46:46 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2018-05-15 19:07:06 +00:00
|
|
|
class ProcessorDoorState : public ObjectProcessor
|
2017-04-02 21:46:46 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorDoorState()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_DOOR_STATE)
|
|
|
|
}
|
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
void Do(ObjectPacket &packet, Player &player, BaseObjectList &objectList) override
|
2017-04-02 21:46:46 +00:00
|
|
|
{
|
|
|
|
packet.Send(true);
|
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
Script::Call<Script::CallbackIdentity("OnDoorState")>(player.getId(), objectList.cell.getDescription().c_str());
|
2017-04-02 21:46:46 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORDOORSTATE_HPP
|