[General] Add placeholder for ObjectActivate packet
parent
61da0d2475
commit
81b160cae8
@ -0,0 +1,26 @@
|
||||
#ifndef OPENMW_PROCESSOROBJECTACTIVATE_HPP
|
||||
#define OPENMW_PROCESSOROBJECTACTIVATE_HPP
|
||||
|
||||
#include "../ObjectProcessor.hpp"
|
||||
#include <apps/openmw-mp/Networking.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorObjectActivate : public ObjectProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorObjectActivate()
|
||||
{
|
||||
BPP_INIT(ID_OBJECT_ACTIVATE)
|
||||
}
|
||||
|
||||
void Do(ObjectPacket &packet, Player &player, BaseObjectList &objectList) override
|
||||
{
|
||||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str());
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnObjectActivate")>(player.getId(), objectList.cell.getDescription().c_str());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSOROBJECTACTIVATE_HPP
|
@ -0,0 +1,26 @@
|
||||
#ifndef OPENMW_PROCESSOROBJECTACTIVATE_HPP
|
||||
#define OPENMW_PROCESSOROBJECTACTIVATE_HPP
|
||||
|
||||
#include "BaseObjectProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorObjectActivate : public BaseObjectProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorObjectActivate()
|
||||
{
|
||||
BPP_INIT(ID_OBJECT_ACTIVATE)
|
||||
}
|
||||
|
||||
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
|
||||
{
|
||||
BaseObjectProcessor::Do(packet, objectList);
|
||||
|
||||
//objectList.activateObjects(ptrCellStore);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSOROBJECTACTIVATE_HPP
|
@ -0,0 +1,15 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketObjectActivate.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketObjectActivate::PacketObjectActivate(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
||||
{
|
||||
packetID = ID_OBJECT_ACTIVATE;
|
||||
hasCellData = true;
|
||||
}
|
||||
|
||||
void PacketObjectActivate::Object(BaseObject &baseObject, bool send)
|
||||
{
|
||||
ObjectPacket::Object(baseObject, send);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_PACKETOBJECTACTIVATE_HPP
|
||||
#define OPENMW_PACKETOBJECTACTIVATE_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/Object/ObjectPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketObjectActivate : public ObjectPacket
|
||||
{
|
||||
public:
|
||||
PacketObjectActivate(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Object(BaseObject &baseObject, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETOBJECTACTIVATE_HPP
|
Loading…
Reference in New Issue