openmw-tes3coop/components/openmw-mp/Packets/Player/PacketTime.cpp

22 lines
464 B
C++
Raw Normal View History

2016-08-30 05:24:31 +00:00
//
// Created by koncord on 30.08.16.
//
#include "PacketTime.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
using namespace mwmp;
2016-10-17 12:54:36 +00:00
PacketTime::PacketTime(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
2016-08-30 05:24:31 +00:00
{
packetID = ID_GAME_TIME;
}
void PacketTime::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
{
2016-10-17 12:54:36 +00:00
PlayerPacket::Packet(bs, player, send);
2016-08-30 05:24:31 +00:00
RW(player->month, send);
RW(player->day, send);
RW(player->hour, send);
}