2016-08-30 05:24:31 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 30.08.16.
|
|
|
|
//
|
|
|
|
|
2017-05-29 01:43:52 +00:00
|
|
|
#include "PacketGameTime.hpp"
|
2016-08-30 05:24:31 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2017-05-29 01:43:52 +00:00
|
|
|
PacketGameTime::PacketGameTime(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-08-30 05:24:31 +00:00
|
|
|
{
|
|
|
|
packetID = ID_GAME_TIME;
|
2017-05-08 16:38:48 +00:00
|
|
|
orderChannel = CHANNEL_SYSTEM;
|
2016-08-30 05:24:31 +00:00
|
|
|
}
|
|
|
|
|
2017-05-29 01:43:52 +00:00
|
|
|
void PacketGameTime::Packet(RakNet::BitStream *bs, bool send)
|
2016-08-30 05:24:31 +00:00
|
|
|
{
|
2017-03-06 09:44:08 +00:00
|
|
|
PlayerPacket::Packet(bs, send);
|
2016-08-30 05:24:31 +00:00
|
|
|
|
|
|
|
RW(player->month, send);
|
|
|
|
RW(player->day, send);
|
|
|
|
RW(player->hour, send);
|
2017-01-26 04:17:29 +00:00
|
|
|
}
|