openmw-tes3coop/components/openmw-mp/Packets/Worldstate/PacketGameTime.cpp
2018-05-21 07:14:08 +03:00

19 lines
466 B
C++

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