1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 10:53:51 +00:00
openmw-tes3mp/components/openmw-mp/Packets/PacketTime.cpp

22 lines
460 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;
PacketTime::PacketTime(RakNet::RakPeerInterface *peer) : BasePacket(peer)
{
packetID = ID_GAME_TIME;
}
void PacketTime::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
{
BasePacket::Packet(bs, player, send);
RW(player->month, send);
RW(player->day, send);
RW(player->hour, send);
}