[General] Rename ScriptLocalShort into ClientScriptLocal
parent
dae76b91ee
commit
4841c1ad4c
@ -0,0 +1,18 @@
|
||||
#ifndef OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP
|
||||
#define OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP
|
||||
|
||||
#include "../ObjectProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorClientScriptLocal : public ObjectProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorClientScriptLocal()
|
||||
{
|
||||
BPP_INIT(ID_CLIENT_SCRIPT_LOCAL)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP
|
@ -1,18 +0,0 @@
|
||||
#ifndef OPENMW_PROCESSORSCRIPTLOCALSHORT_HPP
|
||||
#define OPENMW_PROCESSORSCRIPTLOCALSHORT_HPP
|
||||
|
||||
#include "../ObjectProcessor.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class ProcessorScriptLocalShort : public ObjectProcessor
|
||||
{
|
||||
public:
|
||||
ProcessorScriptLocalShort()
|
||||
{
|
||||
BPP_INIT(ID_SCRIPT_LOCAL_SHORT)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PROCESSORSCRIPTLOCALSHORT_HPP
|
@ -0,0 +1,17 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketClientScriptLocal.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketClientScriptLocal::PacketClientScriptLocal(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
||||
{
|
||||
packetID = ID_CLIENT_SCRIPT_LOCAL;
|
||||
hasCellData = true;
|
||||
}
|
||||
|
||||
void PacketClientScriptLocal::Object(BaseObject &baseObject, bool send)
|
||||
{
|
||||
ObjectPacket::Object(baseObject, send);
|
||||
RW(baseObject.index, send);
|
||||
RW(baseObject.shortVal, send);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_PACKETCLIENTSCRIPTLOCAL_HPP
|
||||
#define OPENMW_PACKETCLIENTSCRIPTLOCAL_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/Object/ObjectPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketClientScriptLocal : public ObjectPacket
|
||||
{
|
||||
public:
|
||||
PacketClientScriptLocal(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Object(BaseObject &obj, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETCLIENTSCRIPTLOCAL_HPP
|
@ -1,17 +0,0 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketScriptLocalShort.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketScriptLocalShort::PacketScriptLocalShort(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
||||
{
|
||||
packetID = ID_SCRIPT_LOCAL_SHORT;
|
||||
hasCellData = true;
|
||||
}
|
||||
|
||||
void PacketScriptLocalShort::Object(BaseObject &baseObject, bool send)
|
||||
{
|
||||
ObjectPacket::Object(baseObject, send);
|
||||
RW(baseObject.index, send);
|
||||
RW(baseObject.shortVal, send);
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
#ifndef OPENMW_PACKETSCRIPTLOCALSHORT_HPP
|
||||
#define OPENMW_PACKETSCRIPTLOCALSHORT_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/Object/ObjectPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketScriptLocalShort : public ObjectPacket
|
||||
{
|
||||
public:
|
||||
PacketScriptLocalShort(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Object(BaseObject &obj, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETSCRIPTLOCALSHORT_HPP
|
Loading…
Reference in New Issue