openmw-tes3coop/components/openmw-mp/Packets/Worldstate/PacketGameTime.cpp

20 lines
466 B
C++
Raw Normal View History

#include "PacketGameTime.hpp"
2016-08-30 05:24:31 +00:00
#include <components/openmw-mp/NetworkMessages.hpp>
using namespace mwmp;
PacketGameTime::PacketGameTime(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer)
2016-08-30 05:24:31 +00:00
{
packetID = ID_GAME_TIME;
orderChannel = CHANNEL_SYSTEM;
2016-08-30 05:24:31 +00:00
}
void PacketGameTime::Packet(RakNet::BitStream *bs, bool send)
2016-08-30 05:24:31 +00:00
{
WorldstatePacket::Packet(bs, send);
2016-08-30 05:24:31 +00:00
RW(worldstate->month, send);
RW(worldstate->day, send);
RW(worldstate->hour, send);
}