mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:49:56 +00:00
27148ce9eb
Additionally, make it slightly clearer who created which previously existing packets.
23 lines
488 B
C++
23 lines
488 B
C++
//
|
|
// Created by koncord on 30.08.16.
|
|
//
|
|
|
|
#include "PacketGameTime.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketGameTime::PacketGameTime(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_GAME_TIME;
|
|
orderChannel = CHANNEL_SYSTEM;
|
|
}
|
|
|
|
void PacketGameTime::Packet(RakNet::BitStream *bs, bool send)
|
|
{
|
|
PlayerPacket::Packet(bs, send);
|
|
|
|
RW(player->month, send);
|
|
RW(player->day, send);
|
|
RW(player->hour, send);
|
|
}
|