1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 02:49:55 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Player/PacketTime.cpp

23 lines
437 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, bool send)
2016-08-30 05:24:31 +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);
}