forked from mirror/openmw-tes3mp
Add placeholders for 5 new WorldPackets
This commit is contained in:
parent
ef6f20e3f7
commit
4f0a3e8aa1
11 changed files with 159 additions and 1 deletions
|
@ -158,7 +158,10 @@ add_component_dir (openmw-mp
|
|||
Packets/Player/PacketTime Packets/Player/PacketInventory
|
||||
|
||||
Packets/World/PacketObjectDelete Packets/World/PacketObjectPlace Packets/World/PacketObjectLock
|
||||
Packets/World/PacketObjectUnlock Packets/World/PacketVideoPlay)
|
||||
Packets/World/PacketObjectUnlock Packets/World/PacketObjectScale
|
||||
|
||||
Packets/World/PacketContainerAdd Packets/World/PacketContainerRemove Packets/World/PacketDoorActivate
|
||||
Packets/World/PacketActivatorActivate Packets/World/PacketVideoPlay)
|
||||
|
||||
add_component_dir (fallback
|
||||
fallback validate
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketActivatorActivate.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketActivatorActivate::PacketActivatorActivate(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_WORLD_ACTIVATOR_ACTIVATE;
|
||||
}
|
||||
|
||||
void PacketActivatorActivate::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef OPENMW_PACKETACTIVATORACTIVATE_HPP
|
||||
#define OPENMW_PACKETACTIVATORACTIVATE_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketActivatorActivate : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketActivatorActivate(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETACTIVATORACTIVATE_HPP
|
14
components/openmw-mp/Packets/World/PacketContainerAdd.cpp
Normal file
14
components/openmw-mp/Packets/World/PacketContainerAdd.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketContainerAdd.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketContainerAdd::PacketContainerAdd(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_WORLD_CONTAINER_ADD;
|
||||
}
|
||||
|
||||
void PacketContainerAdd::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
}
|
17
components/openmw-mp/Packets/World/PacketContainerAdd.hpp
Normal file
17
components/openmw-mp/Packets/World/PacketContainerAdd.hpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef OPENMW_PACKETCONTAINERADD_HPP
|
||||
#define OPENMW_PACKETCONTAINERADD_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketContainerAdd : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketContainerAdd(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETCONTAINERADD_HPP
|
14
components/openmw-mp/Packets/World/PacketContainerRemove.cpp
Normal file
14
components/openmw-mp/Packets/World/PacketContainerRemove.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketContainerRemove.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketContainerRemove::PacketContainerRemove(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_WORLD_CONTAINER_REMOVE;
|
||||
}
|
||||
|
||||
void PacketContainerRemove::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
}
|
17
components/openmw-mp/Packets/World/PacketContainerRemove.hpp
Normal file
17
components/openmw-mp/Packets/World/PacketContainerRemove.hpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef OPENMW_PACKETCONTAINERREMOVE_HPP
|
||||
#define OPENMW_PACKETCONTAINERREMOVE_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketContainerRemove : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketContainerRemove(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETCONTAINERREMOVE_HPP
|
14
components/openmw-mp/Packets/World/PacketDoorActivate.cpp
Normal file
14
components/openmw-mp/Packets/World/PacketDoorActivate.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketDoorActivate.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketDoorActivate::PacketDoorActivate(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_WORLD_DOOR_ACTIVATE;
|
||||
}
|
||||
|
||||
void PacketDoorActivate::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
}
|
17
components/openmw-mp/Packets/World/PacketDoorActivate.hpp
Normal file
17
components/openmw-mp/Packets/World/PacketDoorActivate.hpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef OPENMW_PACKETDOORACTIVATE_HPP
|
||||
#define OPENMW_PACKETDOORACTIVATE_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketDoorActivate : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketDoorActivate(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETDOORACTIVATE_HPP
|
14
components/openmw-mp/Packets/World/PacketObjectScale.cpp
Normal file
14
components/openmw-mp/Packets/World/PacketObjectScale.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketObjectScale.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketObjectScale::PacketObjectScale(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_WORLD_OBJECT_SCALE;
|
||||
}
|
||||
|
||||
void PacketObjectScale::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
}
|
17
components/openmw-mp/Packets/World/PacketObjectScale.hpp
Normal file
17
components/openmw-mp/Packets/World/PacketObjectScale.hpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef OPENMW_PACKETOBJECTSCALE_HPP
|
||||
#define OPENMW_PACKETOBJECTSCALE_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketObjectScale : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketObjectScale(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETOBJECTSCALE_HPP
|
Loading…
Reference in a new issue