forked from mirror/openmw-tes3mp
Merge pull request #437 from TES3MP/0.6.3 while resolving conflicts
commit
7083cb0359
@ -1,8 +1,8 @@
|
||||
#include "../Packets/Worldstate/PacketGameTime.hpp"
|
||||
#include "../Packets/Worldstate/PacketWorldTime.hpp"
|
||||
|
||||
#include "WorldstatePacketController.hpp"
|
||||
|
||||
mwmp::WorldstatePacketController::WorldstatePacketController(RakNet::RakPeerInterface *peer)
|
||||
{
|
||||
AddPacket<PacketGameTime>(&packets, peer);
|
||||
AddPacket<PacketWorldTime>(&packets, peer);
|
||||
}
|
||||
|
@ -1,17 +0,0 @@
|
||||
#ifndef OPENMW_PACKETGAMETIME_HPP
|
||||
#define OPENMW_PACKETGAMETIME_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/Worldstate/WorldstatePacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketGameTime final : public WorldstatePacket
|
||||
{
|
||||
public:
|
||||
PacketGameTime(RakNet::RakPeerInterface *peer);
|
||||
|
||||
void Packet(RakNet::BitStream *bs, bool send) override;
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETGAMETIME_HPP
|
@ -1,15 +1,15 @@
|
||||
#include "PacketGameTime.hpp"
|
||||
#include "PacketWorldTime.hpp"
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketGameTime::PacketGameTime(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer)
|
||||
PacketWorldTime::PacketWorldTime(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer)
|
||||
{
|
||||
packetID = ID_GAME_TIME;
|
||||
packetID = ID_WORLD_TIME;
|
||||
orderChannel = CHANNEL_SYSTEM;
|
||||
}
|
||||
|
||||
void PacketGameTime::Packet(RakNet::BitStream *bs, bool send)
|
||||
void PacketWorldTime::Packet(RakNet::BitStream *bs, bool send)
|
||||
{
|
||||
WorldstatePacket::Packet(bs, send);
|
||||
|
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_PACKETWORLDTIME_HPP
|
||||
#define OPENMW_PACKETWORLDTIME_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/Worldstate/WorldstatePacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketWorldTime : public WorldstatePacket
|
||||
{
|
||||
public:
|
||||
PacketWorldTime(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETWORLDTIME_HPP
|
Loading…
Reference in New Issue